Re: Extended profile not being saved django-allauth

2014-03-17 Thread voger
Hi, I tried this in the django shell after I changed the line to user = models.OneToOneField(User, related_name='userprofile') but I get this error. >>> import userprofile.models >>> from django.contrib.auth.models import User >>> u = User.objects.get(username='test1') >>> print u test1 >>> u.

Re: Extended profile not being saved django-allauth

2014-03-17 Thread voger
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 U

Re: Extended profile not being saved django-allauth

2014-03-17 Thread Fabio Caritas Barrionuevo da Luz
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 messag

Extended profile not being saved django-allauth

2014-03-16 Thread voger
I am trying to extend the user profile according to this page https://docs.djangoproject.com/en/1.6/topics/auth/customizing/#extending-the-existing-user-model I am using django-allauth for registration. My problem is that when the user registers I can't find any new rows in the database. The tab