mirror of
https://github.com/himool/HimoolERP.git
synced 2024-11-10 17:05:03 +08:00
feat: 调整
This commit is contained in:
parent
eaa2cdf542
commit
689cea751c
1 changed files with 1 additions and 4 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue