Hello,
I have the following if statement in one of my views:
if
(Style.objects.get(id=a.id).sandp.get(price=request['price'])==True):

//////////////

Sometimes, the query will not find any results.  However, when this
line gets accessed I get the following error:
Choice matching query does not exist.

///////////////////////////

Does anybody know what i need to do so that I don't receive this error
when the query returns nothing?

Thanks


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to