@@ -825,6 +825,7 @@ def member_activity_update(request, administrator): |
||
825 | 825 |
activity_state = int(request.POST.get('activity_state', 0)) |
826 | 826 |
poster_kv_img_url = request.POST.get('poster_kv_img_url', '') |
827 | 827 |
poster_content = request.POST.get('poster_content', '') |
828 |
+ contribution_content_placeholder = request.POST.get('contribution_content_placeholder', '') |
|
828 | 829 |
|
829 | 830 |
try: |
830 | 831 |
log = MemberActivityInfo.objects.get(activity_id=activity_id, status=True) |
@@ -855,6 +856,7 @@ def member_activity_update(request, administrator): |
||
855 | 856 |
log.activity_state = activity_state |
856 | 857 |
log.poster_kv_img_url = poster_kv_img_url |
857 | 858 |
log.poster_content = poster_content |
859 |
+ log.contribution_content_placeholder = contribution_content_placeholder |
|
858 | 860 |
log.save() |
859 | 861 |
|
860 | 862 |
return response(200, 'MemberActivityInfo Update Success', u'会员活动更新成功') |
@@ -911,7 +913,8 @@ def member_activity_create(request, administrator): |
||
911 | 913 |
share_h5_link=share_h5_link, |
912 | 914 |
activity_state=activity_state, |
913 | 915 |
poster_kv_img_url=poster_kv_img_url, |
914 |
- poster_content=poster_content |
|
916 |
+ poster_content=poster_content, |
|
917 |
+ contribution_content_placeholder=contribution_content_placeholder |
|
915 | 918 |
) |
916 | 919 |
|
917 | 920 |
return response(200, 'MemberActivityInfo Create Success', u'会员活动创建成功', data={ |
@@ -0,0 +1,19 @@ |
||
1 |
+# -*- coding: utf-8 -*- |
|
2 |
+# Generated by Django 3.2.16 on 2022-10-31 06:18 |
|
3 |
+ |
|
4 |
+from django.db import migrations, models |
|
5 |
+ |
|
6 |
+ |
|
7 |
+class Migration(migrations.Migration): |
|
8 |
+ |
|
9 |
+ dependencies = [ |
|
10 |
+ ('member', '0049_alter_memberactivityinfo_limit_image_num'), |
|
11 |
+ ] |
|
12 |
+ |
|
13 |
+ operations = [ |
|
14 |
+ migrations.AddField( |
|
15 |
+ model_name='memberactivityinfo', |
|
16 |
+ name='contribution_content_placeholder', |
|
17 |
+ field=models.CharField(blank=True, default='', help_text='投稿内容占位符', max_length=255, verbose_name='contribution_content_placeholder'), |
|
18 |
+ ), |
|
19 |
+ ] |
@@ -383,6 +383,7 @@ class MemberActivityInfo(BaseModelMixin, BrandInfoMixin): |
||
383 | 383 |
|
384 | 384 |
poster_kv_img_url = models.CharField(_(u'poster_kv_img_url'), max_length=255, blank=True, default='', help_text=u'海报kv图') |
385 | 385 |
poster_content = models.CharField(_(u'poster_content'), max_length=255, blank=True, default='', help_text=u'海报内容') |
386 |
+ contribution_content_placeholder = models.CharField(_(u'contribution_content_placeholder'), max_length=255, blank=True, default='', help_text=u'投稿内容占位符') |
|
386 | 387 |
|
387 | 388 |
position = models.IntegerField(_(u'position'), default=1, help_text=u'排序', db_index=True) |
388 | 389 |
|
@@ -470,6 +471,7 @@ class MemberActivityInfo(BaseModelMixin, BrandInfoMixin): |
||
470 | 471 |
'is_signup': self.is_signup, |
471 | 472 |
'poster_kv_img_url': self.poster_kv_img_url, |
472 | 473 |
'poster_content': self.poster_content, |
474 |
+ 'contribution_content_placeholder': self.contribution_content_placeholder, |
|
473 | 475 |
} |
474 | 476 |
|
475 | 477 |
def details(self, user_id): |
@@ -501,6 +503,8 @@ class MemberActivityInfo(BaseModelMixin, BrandInfoMixin): |
||
501 | 503 |
'is_signup': self.is_signup, |
502 | 504 |
'poster_kv_img_url': self.poster_kv_img_url, |
503 | 505 |
'poster_content': self.poster_content, |
506 |
+ 'contribution_content_placeholder': self.contribution_content_placeholder, |
|
507 |
+ |
|
504 | 508 |
} |
505 | 509 |
|
506 | 510 |
@property |
@@ -536,6 +540,7 @@ class MemberActivityInfo(BaseModelMixin, BrandInfoMixin): |
||
536 | 540 |
'created_at': tc.local_string(utc_dt=self.created_at), |
537 | 541 |
'poster_kv_img_url': self.poster_kv_img_url, |
538 | 542 |
'poster_content': self.poster_content, |
543 |
+ 'contribution_content_placeholder': self.contribution_content_placeholder, |
|
539 | 544 |
'welfares': self.welfares, |
540 | 545 |
} |
541 | 546 |
|
@@ -575,6 +580,7 @@ class MemberActivityInfo(BaseModelMixin, BrandInfoMixin): |
||
575 | 580 |
'created_at': tc.local_string(utc_dt=self.created_at), |
576 | 581 |
'poster_kv_img_url': self.poster_kv_img_url, |
577 | 582 |
'poster_content': self.poster_content, |
583 |
+ 'contribution_content_placeholder': self.contribution_content_placeholder, |
|
578 | 584 |
'welfares': self.welfares, |
579 | 585 |
} |
580 | 586 |
|