From 7e01591fae62439e1eb82b3fecd73748cb24c814 Mon Sep 17 00:00:00 2001 From: jo Date: Mon, 27 Jun 2022 17:18:49 +0200 Subject: [PATCH] style(api): reorder user models fields args --- api/libretime_api/core/models/user.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/api/libretime_api/core/models/user.py b/api/libretime_api/core/models/user.py index d20746e17..ab1399a3c 100644 --- a/api/libretime_api/core/models/user.py +++ b/api/libretime_api/core/models/user.py @@ -36,50 +36,50 @@ class UserManager(BaseUserManager): class User(AbstractBaseUser): role = models.CharField( - db_column="type", max_length=1, choices=Role.choices, + db_column="type", ) - username = models.CharField(db_column="login", unique=True, max_length=255) - password = models.CharField(db_column="pass", max_length=255) + username = models.CharField(unique=True, max_length=255, db_column="login") + password = models.CharField(max_length=255, db_column="pass") email = models.CharField(max_length=1024, blank=True, null=True) first_name = models.CharField(max_length=255) last_name = models.CharField(max_length=255) login_attempts = models.IntegerField( - db_column="login_attempts", blank=True, null=True, + db_column="login_attempts", ) last_login = models.DateTimeField( - db_column="lastlogin", blank=True, null=True, + db_column="lastlogin", ) last_failed_login = models.DateTimeField( - db_column="lastfail", blank=True, null=True, + db_column="lastfail", ) skype = models.CharField( - db_column="skype_contact", max_length=1024, blank=True, null=True, + db_column="skype_contact", ) jabber = models.CharField( - db_column="jabber_contact", max_length=1024, blank=True, null=True, + db_column="jabber_contact", ) phone = models.CharField( - db_column="cell_phone", max_length=1024, blank=True, null=True, + db_column="cell_phone", ) class Meta: