Skip to content

Commit

Permalink
Merge pull request #774 from readthedocs/copy-traffic-cap
Browse files Browse the repository at this point in the history
  • Loading branch information
ericholscher committed Aug 8, 2023
2 parents 39a47e6 + 78a6d5d commit eec0349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adserver/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ def save(self, commit=True):
instance = super().save(commit)

# Copy flight fields that aren't part of the form
for field in ("targeting_parameters", "priority_multiplier"):
for field in ("targeting_parameters", "priority_multiplier", "traffic_cap"):
setattr(instance, field, getattr(self.old_flight, field))
instance.save()

Expand Down

0 comments on commit eec0349

Please sign in to comment.