The call ModelObject.objects.filter(id = entry_id).values() works fine
and the call to .values converts the model object to a dictionary. But
the call ModelObject.objects.get(id = entry_id).values() fails as the
object returned by get doesnot have a .values method. So to convert
this to dictionary I need to do ModelObject.objects.filter(id =
entry_id).values()[0]. Should not the object returned by .get() have
a .values method?
--~--~---------~--~----~------------~-------~--~----~
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