Having a lot of trouble figuring out a proper way to achieve this.. I
have an article posting app that I'm trying to use the
get_next_or_previous_by_foo methods with. I put the calls within
custom methods, get_next and get_prev so I could filter by several
attributes. I need the list that you traverse to include only objects
that have
active=True,
pub_date before today's date, and
expiration date after today's date
OR
expiration date is null

I've tried a lot of things to get the 'or' logic to work here and I
could really use some advice on the smartest way to do this. Thanks a
lot in advance.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to