Opened 11 years ago

Closed 11 years ago

Last modified 10 years ago

#22153 closed Uncategorized (fixed)

Custom User Model giving error in 1.7a2 where as it ran successfully in 1.6

Reported by: just10minutes@… Owned by: nobody
Component: Uncategorized Version: 1.7-alpha-1
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Hi Experts I got this error when I ran my custom User model. Samecustomuser model ran successfully in Django 1.6 Please forgive me and ignore if this is an invalid issue.

CustomUser is my custom user model

CommandError: System check identified some issues:

ERRORS:
auth.User.groups: (E016) Clash between accessors for User.groups and CustomUser.groups.

HINT: Add or change a related_name argument to the definition for User.groups or CustomUser.groups.auth.User.user_permissions: (E016) Clash between accessors for User.user_permissions and CustomUser.user_permissions.

HINT: Add or change a related_name argument to the definition for User.user_permissions or CustomUser.user_permissions.myusers.CustomUser.groups: (E016) Clash between accessors for CustomUser.groups and User.groups.
HINT: Add or change a related_name argument to the definition for CustomUser.groups or User.groups.myusers.CustomUser.user_permissions: (E016) Clash between accessors for CustomUser.user_permissions and User.user_permissions.
HINT: Add or change a related_name argument to the definition for CustomUser.user_permissions or User.user_permissions.

Change History (2)

comment:1 by anonymous, 11 years ago

Resolution: fixed
Status: newclosed

Looks like I got it resolved , I had to add AUTH_USER_MODEL in my settings, but to be frank I tried this solution yesterday but that didnt work now it is fine. Sorry for the spam

comment:2 by Rok Jaklič, 10 years ago

Was banging my head to the wall for two hours, until I found your post. I accidently commented out AUTH_USER_MODEL, and then this...

Version 0, edited 10 years ago by Rok Jaklič (next)
Note: See TracTickets for help on using tickets.
Back to Top