Monday, March 17, 2014

Re: Extended profile not being saved django-allauth

Hi, thanks for the reply. I didn't know about the related_name. I tried
it, did a syncdb witch didn't do anything but still the extra fields
don't save.

On 03/17/2014 06:25 PM, Fabio Caritas Barrionuevo da Luz wrote:
> Voyager, Have you tried putting related_name in the Foreign Key?
>
> class UserProfile(models.Model):
> # This line is required. Links UserProfile to a User model
> instance.
> user = models.ForeignKey(User, unique=True,
> *related_name='userprofile'*)
>
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to django-users+unsubscribe@googlegroups.com
> <mailto:django-users+unsubscribe@googlegroups.com>.
> To post to this group, send email to django-users@googlegroups.com
> <mailto:django-users@googlegroups.com>.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/f78b228e-e759-441d-8005-862e21143fdc%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/f78b228e-e759-441d-8005-862e21143fdc%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/532731F8.8040308%40yahoo.gr.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment