2👍
✅
Usually, when you get the ‘The model is already registered’ error message, you need to unregister it first.
admin.site.unregister(User)
admin.site.register(User, SimpleHistoryAdmin)
However, in this case, the django-simple-history docs for using a third party mode suggest that you should use their register
method instead of admin.site.register
.
from simple_history import register
from django.contrib.auth.models import User
register(User)
Source:stackexchange.com