Skip to content

admin_user fixture expects certain kind of user #174

@ionelmc

Description

@ionelmc

Currently it does:

            user = UserModel._default_manager.create_superuser(
               'admin', 'admin@example.com', 'password', **extra_fields)

But this doesn't work if you have an user model with no email or no username. Perhaps there's a better way to solve this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions