V
V
Vitaly Ananiev2022-04-02 17:27:56
Django
Vitaly Ananiev, 2022-04-02 17:27:56

Do you get an error when adding a new application and creating migrations?

When adding a new application and creating migrations, an error occurs:

SystemCheckError: System check identified some issues:

ERRORS:
auth.User.groups: (fields.E304) Reverse accessor for 'auth.User.groups' clashes with reverse accessor for 'my_auth.User.groups'.
        HINT: Add or change a related_name argument to the definition for 'auth.User.user_permissions' or 'my_auth.User.user_permissions'.
my_auth.User.groups: (fields.E304) Reverse accessor for 'my_auth.User.groups' clashes with reverse accessor for 'auth.User.groups'.
        HINT: Add or change a related_name argument to the definition for 'my_auth.User.groups' or 'auth.User.groups'.
my_auth.User.user_permissions: (fields.E304) Reverse accessor for 'my_auth.User.user_permissions' clashes with reverse accessor for 'auth.User.user_permissions'.
        HINT: Add or change a related_name argument to the definition for 'my_auth.User.user_permissions' or 'auth.User.user_permissions'.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question