1👍
you have to override the groups and give it a related_name
custom_groups = models.ManyToManyField(
Group,
related_name='custom_users',
blank=True,
)
add this to your custom user model
0👍
As per this answer, if you specify your AUTH_USER_MODEL
in your settings.py, the clash should disappear.
# settings.py
AUTH_USER_MODEL = 'custom_auth.CustomUser'
- [Answered ]-Django complicated queryset
- [Answered ]-Delete via AJAX results in CSRF token missing or incorrect
- [Answered ]-Django INNER JOIN using foreign key with WHERE clause
Source:stackexchange.com