Hi,

in one of my views I receive some unicode from javascript, namely I
receive a type of object and its pk. Then I do this:

            object = request.POST['type'].objects.get(pk=int
(request.POST['id']))
and of course Django tells me that a unicode object has no attribute
'objects'. So how could I convert this request.POST to something
usable in this case?

thanks,
Bastien

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