Can't create new user in admin when having a custom user model
|Reported by:||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The built in UserCreationForm is (I think accidently) referencing "User" specifically, instead of using get_user_model for this. In effect, you get a SQL error when trying to create a new user with a custom user model:
17:37:11 web.1 | ProgrammingError: relation "auth_user" does not exist
17:37:11 web.1 | LINE 1: ...user"."is_active", "auth_user"."date_joined" FROM "auth_user...
This is in django 1.6