Re: [django-users] Error when registering a new user - Django 1.5

2013-03-23 Thread Russell Keith-Magee
Variations on this problem report have been made a couple of times UserCreateForm is a ModelForm. That means the line in your Meta clause for model=get_user_model() is invoked at the time the module is loaded. However, there's no guarantee at the time that module is loaded that the user model has

Re: [django-users] Error when registering a new user - Django 1.5

2013-03-22 Thread Leonardo S
I did it and aparently it worked: *# forms.py* *class UserCreateForm(UserCreationForm):* * * * def clean_username(self): username = self.cleaned_data["username"] try: self._meta.model._default_manager.get(username=username) except self._meta.model.DoesNotExi

[django-users] Error when registering a new user - Django 1.5

2013-03-22 Thread Leonardo S
Hi, I am getting an error when registering a new user in a Django 1.5 app. It is the postgres' log: *BRT ERROR: relation "auth_user" does not exist at character 280* *BRT COMMAND: SELECT "auth_user"."id", "auth_user"."password", "auth_user"."last_login", "auth_user"."is_superuser", "auth_user".