promotion get promoted
This commit is contained in:
parent
ee1d1e6e66
commit
2c7d7808b3
2 changed files with 5 additions and 1 deletions
|
|
@ -125,7 +125,7 @@ class Recipient(BaseModel):
|
|||
plan = models.ForeignKey(Plan, on_delete=models.PROTECT, related_name='recipients', null=True, blank=True)
|
||||
wallet_uuid = models.UUIDField(null=True, blank=True)
|
||||
promotion_type = models.CharField(max_length=64, verbose_name=_('promotion type'), db_index=True,
|
||||
choices=PromotionTypeChoices.choices)
|
||||
choices=PromotionTypeChoices.choices, null=True, blank=True)
|
||||
|
||||
recipient_uuid_field = models.CharField(max_length=255, db_index=True)
|
||||
base_amount_field = models.CharField(max_length=255, db_index=True)
|
||||
|
|
|
|||
|
|
@ -167,6 +167,10 @@ class ApplicationApiFlowsTests(APITestCase):
|
|||
'base_amount':800
|
||||
}
|
||||
}
|
||||
response = self.client.get(reverse('promotions:promotion-list', kwargs={"plan": self.first_ad_view_reward_plan.uuid}), event_create_data, HTTP_AUTHORIZATION=auth,
|
||||
format='json')
|
||||
print(response.json())
|
||||
print(response.status_code)
|
||||
# response = self.client.post(reverse('promotions:user-promote', kwargs={"pk":self.first_ad_view_reward_plan.uuid}), event_create_data, HTTP_AUTHORIZATION=auth, format='json')
|
||||
response = self.client.post(reverse('promotions:promotion-create', kwargs={"plan":self.first_ad_view_reward_plan.uuid}), event_create_data, HTTP_AUTHORIZATION=auth, format='json')
|
||||
print(response.json())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue