Replies: 1 comment
-
get_user_model 을 통해 동적으로 지정된 사용자 모델을 활용하는 코드가 미래에 작성될 가능성이 적다고 생각합니다. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
[배경]
get_user_mdoel
함수를 통해 동적으로settings
로 부터 가져오길 권장하고 있습니다.get_user_mdoel
을 사용하고 있습니다.[제약]
get_user_model
에서 리턴되는 클래스가 어떤 기능성을 가지는 지 정적으로 정의되지 못합니다. 이 이유로, 타입 어노테이션에 사용될 수 없습니다.[제안 배경]
[제안]
get_user_model
대신apps.users.models.User
클래스를 직접 사용하는 것을 제안합니다.[장점]
[단점]
Beta Was this translation helpful? Give feedback.
All reactions