- Check
accounts/migrations/0001_initial.py
- You will see this line
bases=(plug.permpp.PermissionsMixin_factory.<locals>.PermissionsMixin, models.Model, accounts.modelpp.NiceNameMixin),
- I has an error
<locals>
- You will see this line
- Delete the above migrations file
- Run
python manage.py makemigrations
- The file above with the error will be created.