diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/tests/factories.py b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/tests/factories.py index 136d0b1d52..d3115d9d7e 100644 --- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/tests/factories.py +++ b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/tests/factories.py @@ -8,7 +8,7 @@ from {{ cookiecutter.project_slug }}.users.models import User -class UserFactory(DjangoModelFactory): +class UserFactory(DjangoModelFactory[User]): {%- if cookiecutter.username_type == "username" %} username = Faker("user_name") {%- endif %}