#10898 closed (fixed)
Bugs in 'conditional view processing' doc
Reported by: | tomasz.elendt | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.1-beta |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
First of all there's bug in code sample in latest_entry
function, which should returns datetime
object instead of dict
. There's also one typo (last_modified
instead of last_modified_func
).
Attachments (1)
Change History (5)
by , 16 years ago
Attachment: | conditional_view_processing.diff added |
---|
comment:1 by , 16 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 16 years ago
comment:3 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
The second part of the patch cannot be correct, since datetime objects don't have a method called
get()
that operates like a queryset. Looks like you probably also want to changeaggregate()
toannotate()
there, since the latter has a different return type (a queryset).