feat: 调整

This commit is contained in:
Czw996 2022-05-12 15:05:52 +08:00
parent eaa2cdf542
commit 689cea751c

View file

@ -3,7 +3,7 @@ from extensions.models import *
class SuperUser(AbstractBaseUser):
username = CharField(max_length=32, verbose_name='用户名')
username = CharField(max_length=32, unique=True, verbose_name='用户名')
USERNAME_FIELD = 'username'
objects = BaseUserManager()
@ -18,9 +18,6 @@ class Device(Model):
serial_number = CharField(max_length=256, null=True, blank=True, verbose_name='序列号')
account_ownership = CharField(max_length=256, null=True, blank=True, verbose_name='账号归属')
class Meta:
unique_together = [('number', 'team')]
__all__ = [
'SuperUser', 'Device',