From db1a7c959214f997bcaece9aea7900526935cf80 Mon Sep 17 00:00:00 2001 From: zty Date: Tue, 22 Apr 2025 10:23:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E9=93=BA=E8=A3=85=E5=B7=A5=E5=8C=A0?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=B1=BB=E5=88=AB=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cms/migrations/0022_userpz_art_cate.py | 18 ++++++++++++++++++ test_server/cms/models.py | 1 + 2 files changed, 19 insertions(+) create mode 100644 test_server/cms/migrations/0022_userpz_art_cate.py diff --git a/test_server/cms/migrations/0022_userpz_art_cate.py b/test_server/cms/migrations/0022_userpz_art_cate.py new file mode 100644 index 0000000..6c48e92 --- /dev/null +++ b/test_server/cms/migrations/0022_userpz_art_cate.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.12 on 2025-04-22 02:20 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('cms', '0021_auto_20250422_1015'), + ] + + operations = [ + migrations.AddField( + model_name='userpz', + name='art_cate', + field=models.CharField(blank=True, max_length=50, null=True, verbose_name='类别'), + ), + ] diff --git a/test_server/cms/models.py b/test_server/cms/models.py index 609552c..772b774 100644 --- a/test_server/cms/models.py +++ b/test_server/cms/models.py @@ -68,6 +68,7 @@ class Threshold(CommonModel): class Userpz(CommonModel): art_name = models.CharField('姓名', max_length=50) art_photo = models.CharField('照片', max_length=100) + art_cate = models.CharField('类别', null=True, blank=True, max_length=50) art_remark = models.TextField('备注', null=True, blank=True, max_length=5000) def __str__(self):