style(api): reorder user models fields args

This commit is contained in:
jo 2022-06-27 17:18:49 +02:00 committed by Kyle Robbertze
parent a11cda0ae4
commit 7e01591fae
1 changed files with 9 additions and 9 deletions

View File

@ -36,50 +36,50 @@ class UserManager(BaseUserManager):
class User(AbstractBaseUser): class User(AbstractBaseUser):
role = models.CharField( role = models.CharField(
db_column="type",
max_length=1, max_length=1,
choices=Role.choices, choices=Role.choices,
db_column="type",
) )
username = models.CharField(db_column="login", unique=True, max_length=255) username = models.CharField(unique=True, max_length=255, db_column="login")
password = models.CharField(db_column="pass", max_length=255) password = models.CharField(max_length=255, db_column="pass")
email = models.CharField(max_length=1024, blank=True, null=True) email = models.CharField(max_length=1024, blank=True, null=True)
first_name = models.CharField(max_length=255) first_name = models.CharField(max_length=255)
last_name = models.CharField(max_length=255) last_name = models.CharField(max_length=255)
login_attempts = models.IntegerField( login_attempts = models.IntegerField(
db_column="login_attempts",
blank=True, blank=True,
null=True, null=True,
db_column="login_attempts",
) )
last_login = models.DateTimeField( last_login = models.DateTimeField(
db_column="lastlogin",
blank=True, blank=True,
null=True, null=True,
db_column="lastlogin",
) )
last_failed_login = models.DateTimeField( last_failed_login = models.DateTimeField(
db_column="lastfail",
blank=True, blank=True,
null=True, null=True,
db_column="lastfail",
) )
skype = models.CharField( skype = models.CharField(
db_column="skype_contact",
max_length=1024, max_length=1024,
blank=True, blank=True,
null=True, null=True,
db_column="skype_contact",
) )
jabber = models.CharField( jabber = models.CharField(
db_column="jabber_contact",
max_length=1024, max_length=1024,
blank=True, blank=True,
null=True, null=True,
db_column="jabber_contact",
) )
phone = models.CharField( phone = models.CharField(
db_column="cell_phone",
max_length=1024, max_length=1024,
blank=True, blank=True,
null=True, null=True,
db_column="cell_phone",
) )
class Meta: class Meta: