Sorry... char.save() should read profile.save()

On Feb 20, 9:05 am, Tim Shaffer <timster...@gmail.com> 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(self):
>         user = super(RegistrationForm, self).save()
>         profile = Profile.objects.create(user=user)
>         char.save()
>         return user
>
> On Feb 19, 10:22 pm, Wiiboy <jordon...@gmail.com> wrote:
>
>
>
> > 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...@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