@@ -0,0 +1,26 @@ |
||
1 |
+# -*- coding: utf-8 -*- |
|
2 |
+ |
|
3 |
+# Generated by Django 3.2.6 on 2023-04-18 08:02 |
|
4 |
+ |
|
5 |
+from django.db import migrations, models |
|
6 |
+import django_models_ext.fileext |
|
7 |
+ |
|
8 |
+ |
|
9 |
+class Migration(migrations.Migration): |
|
10 |
+ |
|
11 |
+ dependencies = [ |
|
12 |
+ ('member', '0054_auto_20230303_1653'), |
|
13 |
+ ] |
|
14 |
+ |
|
15 |
+ operations = [ |
|
16 |
+ migrations.AddField( |
|
17 |
+ model_name='memberactivityinfo', |
|
18 |
+ name='poster_kv_img', |
|
19 |
+ field=models.ImageField(blank=True, help_text='海报kv图', upload_to=django_models_ext.fileext.upload_path, verbose_name='poster_kv_img'), |
|
20 |
+ ), |
|
21 |
+ migrations.AlterField( |
|
22 |
+ model_name='memberactivityinfo', |
|
23 |
+ name='poster_kv_img_url', |
|
24 |
+ field=models.CharField(blank=True, default='', help_text='海报kv图url', max_length=255, verbose_name='poster_kv_img_url'), |
|
25 |
+ ), |
|
26 |
+ ] |
@@ -411,8 +411,11 @@ class MemberActivityInfo(BaseModelMixin, BrandInfoMixin): |
||
411 | 411 |
|
412 | 412 |
activity_state = models.IntegerField(_(u'activity_state'), choices=ACTIVITY_STATE, default=0, help_text=u'活动状态', db_index=True) |
413 | 413 |
|
414 |
- poster_kv_img_url = models.CharField(_(u'poster_kv_img_url'), max_length=255, blank=True, default='', help_text=u'海报kv图') |
|
414 |
+ poster_kv_img_url = models.CharField(_(u'poster_kv_img_url'), max_length=255, blank=True, default='', help_text=u'海报kv图url') |
|
415 |
+ poster_kv_img = models.ImageField(_(u'poster_kv_img'), upload_to=upload_path, blank=True, help_text=u'海报kv图') |
|
416 |
+ |
|
415 | 417 |
poster_content = models.CharField(_(u'poster_content'), max_length=255, blank=True, default='', help_text=u'海报内容') |
418 |
+ |
|
416 | 419 |
contribution_content_placeholder = models.CharField(_(u'contribution_content_placeholder'), max_length=255, blank=True, default='', help_text=u'投稿内容占位符') |
417 | 420 |
|
418 | 421 |
position = models.IntegerField(_(u'position'), default=1, help_text=u'排序', db_index=True) |