users = User.objects.filter(pk=1)

user0 = user[0]
user1 = user[1]

user0 is user1
returns false

it seems [] returns different reference every time it is called?
how could this be done?
i know it's maybe a python question, if i post it in a wrong group,
i'm sorry.

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