I have created models like this
class User(AbstractUser):
login_count = models.PositiveIntegerField(default=0)
class Supplier(User):
company_name= models.CharField(max_length=30)
company_domain=models.CharField(max_length=30)
class Worker(User):
ACCOUNT_TYPE = (
('1', 'Admin'),
('2', 'Regular'),
)
account_type = models.CharField(max_length=1, choices=ACCOUNT_TYPE)
and in the users.admin.py, I have
admin.site.register(Supplier)
admin.site.register(Worker)
Why is it that I have all models names as Users in the Django Admin? instead of Workers and Suppliers?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…