Skip to content

Commit

Permalink
Fix NameError for UserType
Browse files Browse the repository at this point in the history
  • Loading branch information
browniebroke committed Jul 10, 2023
1 parent fe2800e commit 496e457
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
from __future__ import annotations

import typing

from django.contrib.auth import get_user_model
from rest_framework import serializers

if typing.TYPE_CHECKING:
from {{ cookiecutter.project_slug }}.users.models import User as UserType
from {{ cookiecutter.project_slug }}.users.models import User as UserType


User = get_user_model()
Expand Down

0 comments on commit 496e457

Please sign in to comment.