So I successfully migrated from a profile model to an extended User model. The data migration all worked fine, but I can't access my users from the admin, I get the following error:
DatabaseError: (1146, "Table 'mydb.app_myuser_groups' doesn't exist")
All I have defined in models.py
is the following:
class MyUser(AbstractUser):
isSpecial = models.BooleanField(default=True)
having followed these instructions. Is there more I need to do to get this to work?
AbstractUser
inherits fromPermissionMixin
, which has aManyToManyField
to theGroup
model. So there should be aapp_myuser_groups
table in the database. South may be able to create the intermediate table, but I don't know how. What I know is thatsyncdb
ing after having removedapp_myuser
should work, even though your migration would be shredded.This question about adding a through table in a migration should give you more insight.
See my previous answer here and modify step 4 to look like this: