Re: django.contrib.auth.models.User User model can't be saved

2009-03-29 Thread Matthew Somerville
Joshua Partogi wrote: > Yes you're right. In my template I only have username, first_name, > last_name, email and password. I also print out the errors too. Nowhere are you printing out non-field specific errors - please read about non_field_errors at http://docs.djangoproject.com/en/dev/ref/fo

Re: django.contrib.auth.models.User User model can't be saved

2009-03-28 Thread Brian Neal
On Mar 28, 7:02 am, Joshua Partogi wrote: > Yes you're right. In my template I only have username, first_name, > last_name, email and password. I also print out the errors too. Probably what is happening is that some of the other fields you are excluding are required fields. Thus you should use

Re: django.contrib.auth.models.User User model can't be saved

2009-03-28 Thread Joshua Partogi
On Mar 28, 9:31 pm, Matthew Somerville wrote: > Joshua Partogi wrote: > > That is exactly the problem. No exception is thrown. But I guess it > > didn't pass the validation because it wasn't redirecting to another > > page. Which is funny because all the required field in > > django.contrib.aut

Re: django.contrib.auth.models.User User model can't be saved

2009-03-28 Thread Matthew Somerville
Joshua Partogi wrote: > That is exactly the problem. No exception is thrown. But I guess it > didn't pass the validation because it wasn't redirecting to another > page. Which is funny because all the required field in > django.contrib.auth.models.User object is filled in. How are you printing ou

Re: django.contrib.auth.models.User User model can't be saved

2009-03-28 Thread Joshua Partogi
On Mar 28, 2:17 pm, Malcolm Tredinnick wrote: > On Sat, 2009-03-28 at 13:45 +1100, Joshua Partogi wrote: > > Dear all, > > > I currently want to have a registration system. For that matter I will > > be using the existing django.contrib.auth.models.User. > > > So I created a form object as such

Re: django.contrib.auth.models.User User model can't be saved

2009-03-27 Thread Malcolm Tredinnick
On Sat, 2009-03-28 at 13:45 +1100, Joshua Partogi wrote: > Dear all, > > I currently want to have a registration system. For that matter I will > be using the existing django.contrib.auth.models.User. > > So I created a form object as such: > class RegisterForm(ModelForm): > class Meta: >

django.contrib.auth.models.User User model can't be saved

2009-03-27 Thread Joshua Partogi
Dear all, I currently want to have a registration system. For that matter I will be using the existing django.contrib.auth.models.User. So I created a form object as such: class RegisterForm(ModelForm): class Meta: model = User And the view: def form(request): if request.method