Opened 17 months ago

Closed 17 months ago

Last modified 9 months 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 Changed 17 months ago by anonymous

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to fixed
  • Status changed from new to closed

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 Changed 9 months ago by rokj

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...

Thank you!

Last edited 9 months ago by rokj (previous) (diff)
Note: See TracTickets for help on using tickets.
Back to Top