修改只能注册两个用户bug

dependabot/npm_and_yarn/fir_admin/tmpl-1.0.5
youngS 3 years ago
parent 19709c7da3
commit 69c699aebb
  1. 26
      fir_ser/api/migrations/0006_auto_20210907_2100.py
  2. 5
      fir_ser/api/models.py
  3. 1
      fir_ser/requirements.txt

@ -0,0 +1,26 @@
# Generated by Django 3.2.3 on 2021-09-07 21:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0005_thirdwechatuserinfo'),
]
operations = [
migrations.RemoveField(
model_name='userinfo',
name='qq',
),
migrations.AlterField(
model_name='userinfo',
name='email',
field=models.EmailField(blank=True, db_index=True, max_length=255, null=True, verbose_name='email address'),
),
migrations.AlterField(
model_name='userinfo',
name='mobile',
field=models.BigIntegerField(db_index=True, help_text='用于手机验证码登录', null=True, verbose_name='手机'),
),
]

@ -16,13 +16,12 @@ class UserInfo(AbstractUser):
email = models.EmailField(
verbose_name='email address',
max_length=255,
unique=True,
db_index=True,
blank=True,
null=True
)
uid = models.CharField(max_length=64, unique=True, db_index=True) # user_id,唯一标识
mobile = models.BigIntegerField(verbose_name="手机", unique=True, help_text="用于手机验证码登录", null=True)
qq = models.BigIntegerField(verbose_name="QQ", blank=True, null=True, db_index=True)
mobile = models.BigIntegerField(verbose_name="手机", db_index=True, help_text="用于手机验证码登录", null=True)
is_active = models.BooleanField(default=True, verbose_name="账户状态,默认启用")
storage_active = models.BooleanField(default=False, verbose_name="配置存储,默认关闭")
supersign_active = models.BooleanField(default=True, verbose_name="配置超级签,默认关闭")

@ -3,6 +3,7 @@ django-celery-results==2.0.1
django-celery-beat==2.2.0
Django==3.2.3
djangorestframework==3.12.4
djangorestframework-xml==2.0.0
django-simple-captcha==0.5.14
mysqlclient==2.0.3
django-redis==4.12.1

Loading…
Cancel
Save