Opened 15 years ago

Closed 15 years ago

Last modified 13 years ago

#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


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)

conditional_view_processing.diff (1.2 KB ) - added by tomasz.elendt 15 years ago.

Download all attachments as: .zip

Change History (5)

by tomasz.elendt, 15 years ago

comment:1 by Jacob, 15 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Malcolm Tredinnick, 15 years ago

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 change aggregate() to annotate() there, since the latter has a different return type (a queryset).

comment:3 by Russell Keith-Magee, 15 years ago

Resolution: fixed
Status: newclosed

(In [10642]) Fixed #10898 -- Corrected minor error in conditional view processing example. Thanks to Tomasz Elendt for the report.

comment:4 by Jacob, 13 years ago

milestone: 1.1

Milestone 1.1 deleted

Note: See TracTickets for help on using tickets.
Back to Top