Skip to content

error shown while registering new user or createsuperuser from commandline #9

Description

@agautamyash

File "tutorial\accounts\models.py", line 24, in create_profile
user_profile = UserProfile.objects.create(user=kwargs['instance'])
AttributeError: type object 'UserProfile' has no attribute 'objects'

when we register new user or createsuperuser form commandline then above error comes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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