How to solve `Customized User` clash with `User`?
See original GitHub issueSoftwares
Python: 3.6.8
Django: 2.2.2
OSX: 10.14.2
django-cognito-jwt: 0.0.3
According to #3 I have to customized my User
model. Neither single one of the works. I had tried both too.
Case 1: only COGNITO_USER_MODEL
COGNITO_USER_MODEL = "cognitos.User"
Result:
SystemCheckError: System check identified some issues:
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'.
cognitos.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'.
cognitos.User.is_superuser: (models.E006) The field 'is_superuser' clashes with the field 'is_superuser' from model 'cognitos.user'.
cognitos.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'.
Case 2: Only AUTH_USER_MODEL
AUTH_USER_MODEL = "cognitos.User"
Result:
SystemCheckError: System check identified some issues:
ERRORS:
cognitos.User.is_superuser: (models.E006) The field 'is_superuser' clashes with the field 'is_superuser' from model 'cognitos.user'.
Case3: Both COGNITO_USER_MODEL and AUTH_USER_MODEL
COGNITO_USER_MODEL = "cognitos.User"
AUTH_USER_MODEL = "cognitos.User"
SystemCheckError: System check identified some issues:
ERRORS:
cognitos.User.is_superuser: (models.E006) The field 'is_superuser' clashes with the field 'is_superuser' from model 'cognitos.user'.
What is the correct approach using this library?
Issue Analytics
- State:
- Created 4 years ago
- Comments:5
Top Results From Across the Web
About conflict resolution for custom item types | Microsoft Learn
This topic describes how to resolve conflicts for custom item types that you create in Outlook.
Read more >Fix conflicting records errors - Google Domains Help
Conflicts with existing records on <subdomain>; Record already in use; Name conflict; Invalid record count. Before you begin. Certain records don't interact ...
Read more >HTMD-MI2️⃣7️⃣Intune Resolve Conflicts with ... - YouTube
HTMD MI 27 Intune Resolve Conflicts with Configuration Profiles Revert Custom configuration profileshttps://youtu.be/2mXa9gV2qEgDay ...
Read more >Empathy Mapping: The First Step in Design Thinking
Visualizing user attitudes and behaviors in an empathy map helps UX teams align ... to investigate the cause of the conflict and resolve...
Read more >User, Group, & Division Permissions - Qualtrics
Create Idea Screening Projects: Allows users to use the Idea Screening XM Solution. Can Change Custom Solution Access Type: Allows the user to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I found the solution now. I have to
startapp
with customizedUser
classAnd add
AUTH_USER_MODEL = 'customized_users.User'
tosettings.py