Add a field to the Django admin for a custom user model

前端 未结 0 1978
无人共我
无人共我 2020-11-28 12:55

I have a custom user model:

from django.contrib.auth.models import AbstractUser

class User(AbstractUser):
    is_happy = models.BooleanField(default=False)
<         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题