I am trying to grab objects from a model only if they are not complete
using a context processor. This is the code I have right now, but it
doesn't work. Is there an easy way to filter by if a date field is
empty/null?

def event_open(request):
    from app.events.models import Event
    return {'event_open': Event.objects.filter(date_closed)}


--~--~---------~--~----~------------~-------~--~----~
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