超级签默认启动

dependabot/pip/fir_ser/django-3.2.4
youngS 3 years ago
parent 30db4882b4
commit 56cd35565f
  1. 22
      fir_ser/api/migrations/0002_auto_20210607_1743.py
  2. 2
      fir_ser/api/models.py

@ -0,0 +1,22 @@
# Generated by Django 3.2.3 on 2021-06-07 17:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='userinfo',
name='first_name',
field=models.CharField(blank=True, max_length=150, verbose_name='first name'),
),
migrations.AlterField(
model_name='userinfo',
name='supersign_active',
field=models.BooleanField(default=True, verbose_name='配置超级签,默认关闭'),
),
]

@ -25,7 +25,7 @@ class UserInfo(AbstractUser):
qq = models.BigIntegerField(verbose_name="QQ", blank=True, null=True, db_index=True) qq = models.BigIntegerField(verbose_name="QQ", blank=True, null=True, db_index=True)
is_active = models.BooleanField(default=True, verbose_name="账户状态,默认启用") is_active = models.BooleanField(default=True, verbose_name="账户状态,默认启用")
storage_active = models.BooleanField(default=False, verbose_name="配置存储,默认关闭") storage_active = models.BooleanField(default=False, verbose_name="配置存储,默认关闭")
supersign_active = models.BooleanField(default=False, verbose_name="配置超级签,默认关闭") supersign_active = models.BooleanField(default=True, verbose_name="配置超级签,默认关闭")
job = models.TextField("职位", max_length=128, blank=True, null=True) job = models.TextField("职位", max_length=128, blank=True, null=True)
company = models.CharField("公司", max_length=128, blank=True, null=True) company = models.CharField("公司", max_length=128, blank=True, null=True)

Loading…
Cancel
Save