# Category

• ## ForeignKey to custom user model in Django

Came across this problem when running a syncdb in Django (>=1.5) : |  CommandError: One or more models did not validate: APP.ModelName: 'user' defines a relation with the model 'auth.User', which has been swapped out. Update the relation to point at settings.AUTH_USER_MODEL.

So you define a custom user …

Page 1 / 1