Allow operation_names to be a list instead of a singular item
This commit is contained in:
parent
2251475bbe
commit
65a7622582
7 changed files with 104 additions and 42 deletions
|
|
@ -836,10 +836,10 @@ class Command(BaseCommand):
|
|||
if (
|
||||
response.extensions
|
||||
and response.extensions.operation_name
|
||||
and campaign_obj.operation_name != response.extensions.operation_name
|
||||
and response.extensions.operation_name not in campaign_obj.operation_names
|
||||
):
|
||||
campaign_obj.operation_name = response.extensions.operation_name
|
||||
campaign_obj.save(update_fields=["operation_name"])
|
||||
campaign_obj.operation_names.append(response.extensions.operation_name)
|
||||
campaign_obj.save(update_fields=["operation_names"])
|
||||
|
||||
if drop_campaign.time_based_drops:
|
||||
self._process_time_based_drops(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue