> I am little confused about it. I am not sure django allow this or not.
> Please correct me.
>
> string = last_name = 'Riaz edit',  first_name = 'Asim edit',
> nationality  = 'se'
> User.objects.filter(id=11).update(string)
>
> I am using this and its giving me this error:
>
> update() takes exactly 1 argument (2 given)
>
> please correct me or give me any idea how to do this.

Try the simpler way:

user = User.objects.get(id=11)
user.last_name = 'Riaz edit'
user.first_name = 'Asim edit'
user.nationality = 'se'
user.save()

Regards
Scott

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

Reply via email to