Skip to content

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

@residentcode

Description

@residentcode

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions