We are following the tutorial [1] to add fields to the profile/user, but it 
gives the following 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'.
user.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'.
user.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'.

 Is there a step missing or are we making a mistake?

Our model is:

from oscar.apps.customer.abstract_models import AbstractUser
from phonenumber_field.modelfields import PhoneNumberField
from django.utils.translation import gettext_lazy as _

class User(AbstractUser):
    phone_number = PhoneNumberField(
        _("Phone number"), blank=True,
       help_text=_("In case we need to call you"))


[1] 
https://django-oscar.readthedocs.io/en/3.0.0/howto/use_a_custom_user_model.html

-- 
https://github.com/django-oscar/django-oscar
http://django-oscar.readthedocs.org/en/latest/
--- 
You received this message because you are subscribed to the Google Groups 
"django-oscar" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-oscar+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/django-oscar/47c2ac7d-86cb-4267-8f61-a673002bdc33n%40googlegroups.com.

Reply via email to