I’m trying to start a new app (called jsnake) and when I try to run makemigrations for the first time I get:
ERRORS: auth.User.groups: (fields.E304) Reverse accessor for 'User.groups' clashes with reverse accessor for 'User.groups'. HINT: Add or change a related_name argument to the definition for 'User.groups' or 'User.groups'. auth.User.user_permissions: (fields.E304) Reverse accessor for 'User.user_permissions' clashes with reverse accessor for 'User.user_permissions'. HINT: Add or change a related_name argument to the definition for 'User.user_permissions' or 'User.user_permissions'. jsnake.User.groups: (fields.E304) Reverse accessor for 'User.groups' clashes with reverse accessor for 'User.groups'. HINT: Add or change a related_name argument to the definition for 'User.groups' or 'User.groups'. jsnake.User.user_permissions: (fields.E304) Reverse accessor for 'User.user_permissions' clashes with reverse accessor for 'User.user_permissions'. HINT: Add or change a related_name argument to the definition for 'User.user_permissions' or 'User.user_permissions'.
The thing is, my models.py is so simple I don’t know how to fix this issue nor why it is happening:
from django.contrib.auth.models import AbstractUser
from django.db import models
class User(AbstractUser):
pass
I’ve done this same process before in other projects with the models.py just like this one and didn’t face this problem. Why is this happening now? Did I miss something?