123456xjy 8 months ago
parent 818969f85c
commit 222d797189

@ -2,7 +2,7 @@
from django.db import migrations, models
import django.db.models.deletion
#这个也有问题
class Migration(migrations.Migration):

@ -1,7 +1,7 @@
import random
from PIL import Image, ImageDraw, ImageFont, ImageFilter
#这是干嘛的
def check_code(width=120, height=30, char_length=5, font_file='Monaco.ttf', font_size=28):
code = []
img = Image.new(mode='RGB', size=(width, height), color=(255, 255, 255))

@ -54,7 +54,7 @@ class PrettyEditModelForm(BootStrapModelForm):
label="手机号",
validators=[RegexValidator(r'^1[3-9]\d{9}$', '手机号格式错误'), ],
)
#这个是干嘛的
class Meta:
model = models.PrettyNum
fields = ['mobile', 'price', 'level', 'status']

Loading…
Cancel
Save