dragon-fire-fly / developer_matcher

2 stars 1 forks source link

[BUG] SetUp - SystemCheckError #13

Closed dragon-fire-fly closed 1 year ago

dragon-fire-fly commented 1 year ago

Describe the bug

SystemCheckError1

A SystemCheckError states that the Reverse accessor for app_home.User.groups clashes with the reverse accessor for auth.User.groups

This occurred when I added my own custom User model class inheriting from AbstractUser: SystemCheckError_code

To Reproduce Steps to reproduce the behavior:

  1. Go to terminal
  2. Type python manage.py runserver
  3. See error

Expected behavior The server should have started normally without any errors

Screenshots See above

Desktop (please complete the following information):

Additional context This seems to be a problem with inheriting from the AbstractUser class

dragon-fire-fly commented 1 year ago

This bug was caused because the AUTH_USER_MODEL hadn't been registered yet in the settings. Adding AUTH_USER_MODEL = "app_home.User" in the settings solved this problem. This was solved with reference to this Stack Overflow answer.