You can't use get to return more than one object! If you want return multiple object, use .filterMultipleObjectsReturned at /accounts/register/ get() returned more than one User -- it returned 4!
If you try to get user with email='jaspritsarao@gmail.com' and there are 4 user with this email, it can't work.
One User per email is a good way I think..
BILLION Sébastien
the Answer to the ultimate question of life, the universe and everything is42
http://www.sebastienbillion.com/
the Answer to the ultimate question of life, the universe and everything is
http://www.sebastienbillion.com/
Le 10/10/2011 16:27, Jaspreet Sarao a écrit :
Hi django users I need help I have a problem regarding registration form in which I have to fill username, email address and password. When I used to register, it gives error: MultipleObjectsReturned at /accounts/register/ get() returned more than one User -- it returned 4! Here I also attached a screenshot -- Jaspreet sarao email: jaspritsarao@gmail.com Blog: jaspreetsarao.wordpress.com
No comments:
Post a Comment