Re: Making a User Registration form

2010-02-20 Thread Wiiboy
Ok, I think that'll work. I'll try it. -- 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.

Re: Making a User Registration form

2010-02-20 Thread Tim Shaffer
> Wait, but do profile fields get displayed as part of the form? Just add them to RegistrationForm and they will. Or create another form class for Profile, and use the fields from that to populate the Profile... {{ reg_form.as_p }} {{ profile_form.as_p }} On Feb 20, 10:22 am, Shawn Milochik w

Re: Making a User Registration form

2010-02-20 Thread Shawn Milochik
On Feb 20, 2010, at 10:11 AM, Wiiboy wrote: > Wait, but do profile fields get displayed as part of the form? This is Django. It can do whatever you want it to. Django-registration was specifically written to be reusable so that, for example, templates can be overridden with your own. Shawn -

Re: Making a User Registration form

2010-02-20 Thread Wiiboy
Wait, but do profile fields get displayed as part of the form? -- 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+unsubs

Re: Making a User Registration form

2010-02-20 Thread Tim Shaffer
Sorry... char.save() should read profile.save() On Feb 20, 9:05 am, Tim Shaffer wrote: > It's really not that difficult. You can just override the save() > method and create the Profile there. > > class RegistrationForm(forms.ModelForm): > >     class Meta: >         model = User > >     def save

Re: Making a User Registration form

2010-02-20 Thread Tim Shaffer
It's really not that difficult. You can just override the save() method and create the Profile there. class RegistrationForm(forms.ModelForm): class Meta: model = User def save(self): user = super(RegistrationForm, self).save() profile = Profile.objects.create(use

Re: Making a User Registration form

2010-02-19 Thread Wiiboy
That doesn't look like it helps a whole lot actually. I don't see where I can create a registration form including my custom profile model. -- 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...@google

Re: Making a User Registration form

2010-02-19 Thread Shawn Milochik
http://bitbucket.org/ubernostrum/django-registration/ -- 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...@goo

Making a User Registration form

2010-02-19 Thread Wiiboy
Hi guys, What's the easiest way to make a user registration form, based on my own Profile model and the built-in user model? Writing my own form from scratch is looking like the most painless but time-consuming way. -- You received this message because you are subscribed to the Google Groups "D