You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Relation to user models should use settings.AUTH_USER_MODEL instead of directly referencing the User model.
It generate two errors when making migrations:
ERRORS:
pinax_wiki.MediaFile.user: (fields.E301) Field defines a relation with the model 'auth.User', which has been swapped out.
HINT: Update the relation to point at 'settings.AUTH_USER_MODEL'.
pinax_wiki.Revision.created_by: (fields.E301) Field defines a relation with the model 'auth.User', which has been swapped out.
HINT: Update the relation to point at 'settings.AUTH_USER_MODEL'.
The text was updated successfully, but these errors were encountered:
Relation to user models should use settings.AUTH_USER_MODEL instead of directly referencing the User model.
It generate two errors when making migrations:
ERRORS:
pinax_wiki.MediaFile.user: (fields.E301) Field defines a relation with the model 'auth.User', which has been swapped out.
HINT: Update the relation to point at 'settings.AUTH_USER_MODEL'.
pinax_wiki.Revision.created_by: (fields.E301) Field defines a relation with the model 'auth.User', which has been swapped out.
HINT: Update the relation to point at 'settings.AUTH_USER_MODEL'.
The text was updated successfully, but these errors were encountered: