update
This commit is contained in:
1 parent
3a58925764
commit
7e5e02c7e6
10 files changed
+231
-25
No files matched your search
@@ -27,6 +27,12 @@ class User(AbstractUser):
|
||||
blank=True,
|
||||
verbose_name="明文密码",
|
||||
)
|
||||
classname = models.CharField(
|
||||
max_length=50,
|
||||
blank=True,
|
||||
default="",
|
||||
verbose_name="班级",
|
||||
)
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
if self.username:
|
||||
|
||||
Reference in new issue
Block a user