why don't you create a DateField "date_completed" AND a BoolanField "completed" and update the boolean automaticly depending on the DateFields value? filtering on a method is possible, but requires iterating over all results. that can be quite a performance hit.
Comment
why don't you create a DateField "date_completed" AND a BoolanField "completed" and update the boolean automaticly depending on the DateFields value? filtering on a method is possible, but requires iterating over all results. that can be quite a performance hit.
Replies
That's exactly what I didn't want. Why add extra database fields when you don't have to?
No, filtering on a method IS possible but that's why I had to write the special manager.