The field admin.LogEntry.user was declared with a lazy reference to 'account.user', but app 'account' doesn't provide model 'user'

2,816 views
Skip to first unread message

sagar ninave

unread,
Mar 2, 2020, 7:39:14 AM3/2/20
to Django users

Naveen Arora

unread,
Mar 3, 2020, 4:22:20 AM3/3/20
to Django users
If you are interfering with USER model, note that you have to change the deafult model to first migration only.
Solution - Delete the migrations folder, run makemigrations and migrate again. Also, if you are overriding any model, must define it in settings.py.

Regards
Naveen Arora

On Monday, 2 March 2020 18:09:14 UTC+5:30, sagar ninave wrote:
Reply all
Reply to author
Forward
0 new messages