Skip to content

Commit

Permalink
Keep the model fields consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
akshar-raaj committed Aug 29, 2013
1 parent 95cec37 commit 9b3a91b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/models.rst
Expand Up @@ -26,7 +26,7 @@ Custom Manager Methods
----------------------
Imagine you have a query like this::
Event.objects.filter(status='P').filter(start_date__gte=datetime.datetime.now()).order_by('start_date')
Event.objects.filter(is_published=True).filter(start_date__gte=datetime.datetime.now()).order_by('start_date')

you probably will need to filter by status and created date again, to avoid duplicating
code you could add custom methods to your default manager::
Expand Down

0 comments on commit 9b3a91b

Please sign in to comment.