[Django] #22153: Custom User Model giving error in 1.7a2 where as it ran successfully in 1.6

20 views
Skip to first unread message

Django

unread,
Feb 26, 2014, 2:36:47 PM2/26/14
to django-...@googlegroups.com
#22153: Custom User Model giving error in 1.7a2 where as it ran successfully in 1.6
---------------------------------+-------------------------
Reporter: just10minutes@… | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 1.7-alpha-1
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+-------------------------
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.

--
Ticket URL: <https://code.djangoproject.com/ticket/22153>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Feb 26, 2014, 2:44:55 PM2/26/14
to django-...@googlegroups.com
#22153: Custom User Model giving error in 1.7a2 where as it ran successfully in 1.6
---------------------------------+---------------------------------------
Reporter: just10minutes@… | Owner: nobody
Type: Uncategorized | Status: closed
Component: Uncategorized | Version: 1.7-alpha-1
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
---------------------------------+---------------------------------------
Changes (by anonymous):

* status: new => closed
* needs_better_patch: => 0
* resolution: => fixed
* needs_tests: => 0
* needs_docs: => 0


Comment:

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

--
Ticket URL: <https://code.djangoproject.com/ticket/22153#comment:1>

Django

unread,
Nov 18, 2014, 6:58:09 AM11/18/14
to django-...@googlegroups.com
#22153: Custom User Model giving error in 1.7a2 where as it ran successfully in 1.6
---------------------------------+---------------------------------------
Reporter: just10minutes@… | Owner: nobody
Type: Uncategorized | Status: closed
Component: Uncategorized | Version: 1.7-alpha-1
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Unreviewed

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
---------------------------------+---------------------------------------

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

--
Ticket URL: <https://code.djangoproject.com/ticket/22153#comment:2>

Reply all
Reply to author
Forward
0 new messages