修复 activity_contribute_list content_type 筛选bug

FFIB 2 years ago
parent
commit
6503046a8c
2 changed files with 1 additions and 20 deletions
  1. 1 1
      api/member_views.py
  2. 0 19
      coupon/migrations/0017_alter_usercouponinfo_coupon_from.py

+ 1 - 1
api/member_views.py

@@ -559,7 +559,7 @@ def activity_contribute_list(request):
559 559
 
560 560
     contributions = MemberActivityContributionInfo.objects.filter(activity_id=activity_id, status=True)
561 561
     if 'content_type' in request.POST:
562
-        contributions.filter(content_type=content_type)
562
+        contributions = contributions.filter(content_type=content_type)
563 563
     if 'is_myself' in request.POST:
564 564
         if is_myself:
565 565
             contributions = contributions.filter(user_id=user_id)

+ 0 - 19
coupon/migrations/0017_alter_usercouponinfo_coupon_from.py

@@ -1,19 +0,0 @@
1
-# -*- coding: utf-8 -*-
2
-# Generated by Django 3.2.9 on 2022-07-04 12:01
3
-
4
-from django.db import migrations, models
5
-
6
-
7
-class Migration(migrations.Migration):
8
-
9
-    dependencies = [
10
-        ('coupon', '0016_auto_20201202_1203'),
11
-    ]
12
-
13
-    operations = [
14
-        migrations.AlterField(
15
-            model_name='usercouponinfo',
16
-            name='coupon_from',
17
-            field=models.CharField(blank=True, db_index=True, default='MEMBER_BENEFITS', help_text=u'劵来源', max_length=32, null=True, verbose_name='coupon_from'),
18
-        ),
19
-    ]