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