MV wrote:
> I need to check if 2 different entries in the database exist, and serve 
> different variables to the template if
> 1. they both exists
> 2. if only the first one exists
> 3. if only the last one exists
> 4. if none exists.
>
> -
> MV
>
> >
>
>   
After a good nights sleep, I figured I could instead check to see if the 
entry was the type I wanted, ie: if type(model.entry) == datetime.datetime.
First I check both, then only the one, and then I just use 'else' when 
both are empty.

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

Reply via email to