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
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
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".
3 matches
Mail list logo