Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(fields.E301) Field defines a relation with the model 'auth.User' #1

Open
residentcode opened this issue Jan 4, 2022 · 4 comments
Open

Comments

@residentcode
Copy link

residentcode commented Jan 4, 2022

Hello,
Please add support for Django custom User model.
model.py
replace line 8

from django.contrib.auth.models import User

with
from django.contrib.auth import get_user_model

line 15
User = get_user_model()

I tested it pass ok with migrate

Im not 100% sure if it fully works like this or need more modifications

@residentcode
Copy link
Author

Two Step QR Code: N.A
No QR Code for some reason

@imankarimi
Copy link
Owner

Hi @residentcode,
Sorry if I answered late and by the way thanks for the correction. Sure I will do the same.

@imankarimi
Copy link
Owner

Two Step QR Code: N.A No QR Code for some reason

what do you mean by this? sorry I didn't get it!

@vishwa-avialdo
Copy link

vishwa-avialdo commented Nov 27, 2024

Although this issue is fixed and @fara's PR is merged but the changes are not reflected in pip package. I'm still facing this issue after installing this package using pip. I believe updated version is pushed to the pip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants