Ok...context helps! :) Try reading this... http://docs.djangoproject.com/en/dev/topics/serialization/#deserialization-of-natural-keys
I think that'll help get you where you need to go. n On Mon, Sep 13, 2010 at 2:19 PM, ashy <ashwinmo...@gmail.com> wrote: > Hi Nick, > > I am trying to serialize the object and send it to the calling ajax > request > > users = Userdata.objects.all() > HttpResponse(serializers.serialize('json', users), > mimetype='application/json') > > in the javascript code, I do not get the user object to call > u.username. > > I guess it wont work that way. Is there any alternate method. > > thanks > ashy > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Guadajuko! Vamos a correr! -"Cool! we are going to run!" -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.