@@ -0,0 +1,23 @@ |
||
| 1 |
+# Generated by Django 2.2.12 on 2020-05-13 02:58 |
|
| 2 |
+ |
|
| 3 |
+from django.db import migrations, models |
|
| 4 |
+ |
|
| 5 |
+ |
|
| 6 |
+class Migration(migrations.Migration): |
|
| 7 |
+ |
|
| 8 |
+ dependencies = [ |
|
| 9 |
+ ('goods', '0005_auto_20200422_1818'),
|
|
| 10 |
+ ] |
|
| 11 |
+ |
|
| 12 |
+ operations = [ |
|
| 13 |
+ migrations.AlterField( |
|
| 14 |
+ model_name='goodsinfo', |
|
| 15 |
+ name='title', |
|
| 16 |
+ field=models.CharField(blank=True, help_text='商品名称', max_length=128, null=True, verbose_name='title'), |
|
| 17 |
+ ), |
|
| 18 |
+ migrations.AlterField( |
|
| 19 |
+ model_name='packinfo', |
|
| 20 |
+ name='title', |
|
| 21 |
+ field=models.CharField(blank=True, db_index=True, help_text='标题', max_length=128, null=True, verbose_name='title'), |
|
| 22 |
+ ), |
|
| 23 |
+ ] |
@@ -14,7 +14,7 @@ from simditor.fields import RichTextField |
||
| 14 | 14 |
class GoodsInfo(BaseModelMixin): |
| 15 | 15 |
good_id = ShortUUIDField(_('good_id'), max_length=32, blank=True, null=True, help_text='商品唯一标识', db_index=True, unique=True)
|
| 16 | 16 |
|
| 17 |
- title = models.CharField(_('title'), max_length=32, blank=True, null=True, help_text='商品名称')
|
|
| 17 |
+ title = models.CharField(_('title'), max_length=128, blank=True, null=True, help_text='商品名称')
|
|
| 18 | 18 |
image = models.ImageField(_('image'), upload_to=upload_path, blank=True, null=True, help_text='商品图片')
|
| 19 | 19 |
intro = models.TextField(_('intro'), blank=True, null=True, help_text='商品简介')
|
| 20 | 20 |
price = models.IntegerField(_('price'), default=0, help_text='商品价格(分)')
|
@@ -47,7 +47,7 @@ class GoodsInfo(BaseModelMixin): |
||
| 47 | 47 |
|
| 48 | 48 |
class PackInfo(BaseModelMixin): |
| 49 | 49 |
pack_id = ShortUUIDField(_('pack_id'), max_length=32, blank=True, null=True, help_text='包唯一标识', db_index=True, unique=True)
|
| 50 |
- title = models.CharField(_('title'), max_length=32, blank=True, null=True, help_text='标题', db_index=True)
|
|
| 50 |
+ title = models.CharField(_('title'), max_length=128, blank=True, null=True, help_text='标题', db_index=True)
|
|
| 51 | 51 |
expired_at = models.DateTimeField(_('expired_at'), blank=True, null=True, help_text=_('过期时间'))
|
| 52 | 52 |
pack_detail = RichTextField(_('pack_detail'), blank=True, null=True, help_text='包详情')
|
| 53 | 53 |
kol_id = models.CharField(_('kol_id'), max_length=32, blank=True, null=True, help_text='KOL 唯一标识', db_index=True)
|