[Answer]-Django-registration with Django 1.5

1👍

It doesn’t seem to be updated to work with configurable user models yet based on the following lines from here

from django.contrib.auth.models import User

class RegistrationProfile(models.Model):
    user = models.ForeignKey(User, unique=True, verbose_name=_('user'))

0👍

I am using django-registration VERSION = (1, 0, 0, ‘final’, 0) and have almost the same custom model (I have a couple of extra fields for name etc).

It works for me by following the changes here.

I haven’t tried it but presume that you should just be able to make the changes to the imports at the top of the 2 files and then reset the other changes by using User = get_user_model as indicated in another post/link (not sure where I saw that now though).

I’m new to django and django-registration so I’m probably not aware of something but I don’t see why this change couldn’t be incorporated into the original module?

Leave a comment