Field defines a relation with model 'MODEL', which is either not installed, or is abstract
<p>Using custom user model in Django is like living in hell for me. After spending endless hours trying to get it done, now I face new problem: once I add some other app that depends on my custom user model I see this:
for example once I add <code>'django.contrib.admin'</code>, I see the error</p>

<pre><code>admin.LogEntry.user: (fields.E300) Field defines a relation with model 'main.Usr', which is either not installed, or is abstract.
admin.LogEntry.user: (fields.E307) The field admin.LogEntry.user was declared with a lazy reference to 'main.usr', but app 'main' doesn't provide model 'usr'.
</code></pre>

<p>my settings is like</p>

<pre><code>AUTH_USER_MODEL = 'main.Usr'

INSTALLED_APPS = [
    'django.contrib.auth',
    'main', # my app
    'django.contrib.admin',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.staticfiles',
    'debug_toolbar',
    'django.contrib.postgres',
]
</code></pre>