Monday, October 10, 2011

Re: Problem in registration form

The response is in the message...

MultipleObjectsReturned at /accounts/register/ get() returned more than one User -- it returned 4!
You can't use get to return more than one object! If you want return multiple object, use .filter
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 is 42

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