[Django]-GenericForeignKey violation ONLY when User model given, Postgres

5👍

In your settings module, change the ordering of your ‘INSTALLED_APPS’ variable so that ‘django.contrib.auth’ is below ‘django.contrib.contenttypes’, e.g.:

From:

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    ...etc
)

To:

INSTALLED_APPS = (
    'django.contrib.contenttypes',
    'django.contrib.auth',
    ...etc
)

Leave a comment