I\'ve models.py as follows,
models.py
from django.contrib.auth.models import User from django.db import models from django.utils.encoding import python_2_
I faced the same issue when I upgrade the Django version 2.x to 3.0. This issue, I faced due to auditlog library.
First, execute the below command
pip uninstall auditlog
then
pip install auditlog3