Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
AbstractUser を介して拡張された場合、 User モデルのデフォルトのユーザー名フィールドを置き換えることは可能ですか?
私が試してみると:
USERNAME_FIELD = 'my_custom_field'
私の拡張モデルでは、次のエラーが発生します。
TypeError: create_superuser() は、syncdb でスーパーユーザーを作成するときに、正確に 4 つの引数 (3 つ指定) を取ります。
ありがとう!