+ field=models.CharField(blank=True, help_text='视频链接', max_length=255, null=True, verbose_name='video_url'),
|
|
|
18
|
+ ),
|
|
|
19
|
+ ]
|
|
|
|
@@ -692,6 +692,7 @@ class MemberActivityContributionInfo(BaseModelMixin):
|
|
692
|
692
|
# 'height': 100,
|
|
693
|
693
|
# }]
|
|
694
|
694
|
images = JSONField(_(u'images'), default=[], help_text=u'图片列表')
|
|
|
695
|
+ video_url = models.CharField(_(u'video_url'), max_length=255, blank=True, null=True, help_text=u'视频链接')
|
|
695
|
696
|
|
|
696
|
697
|
class Meta:
|
|
697
|
698
|
verbose_name = _(u'会员活动投稿信息')
|
|
|
|
@@ -711,4 +712,5 @@ class MemberActivityContributionInfo(BaseModelMixin):
|
|
711
|
712
|
'title': self.title,
|
|
712
|
713
|
'content': self.content,
|
|
713
|
714
|
'images': self.images,
|
|
|
715
|
+ 'video_url': self.video_url or '',
|
|
714
|
716
|
}
|
|
|
|
@@ -95,6 +95,11 @@ class MemberActivityStatusCode(BaseStatusCode):
|
|
95
|
95
|
ACTIVITY_NOT_FOUND = StatusCodeField(503701, 'Activity Not Found', description=u'活动不存在')
|
|
96
|
96
|
|
|
97
|
97
|
|
|
|
98
|
+class MemberActivityContributionStatusCode(BaseStatusCode):
|
|
|
99
|
+ """ 会员活动投稿相关错误码 5038xx """
|
|
|
100
|
+ ACTIVITY_CONTRIBUTION_NOT_FOUND = StatusCodeField(503801, 'Activity Contribution Not Found', description=u'活动投稿不存在')
|
|
|
101
|
+
|
|
|
102
|
+
|
|
98
|
103
|
class MemberCouponStatusCode(BaseStatusCode):
|
|
99
|
104
|
""" 会员优惠券相关错误码 5040xx """
|
|
100
|
105
|
USER_COUPON_NOT_FOUND = StatusCodeField(504001, 'User Coupon Not Found', description=u'用户优惠券不存在')
|