diff --git a/staffing/views.py b/staffing/views.py index 7cab3d99..4eb2c4c5 100644 --- a/staffing/views.py +++ b/staffing/views.py @@ -1816,7 +1816,8 @@ def mission_update(request): mission = Mission.objects.get(id=mission_id) # If no mission found, it fails, that's what we want if attribute == "billing_mode": values = dict(Mission.BILLING_MODES) - values = {mission.billing_mode: values.pop(mission.billing_mode), **values} + if mission.billing_mode: + values = {mission.billing_mode: values.pop(mission.billing_mode), **values} if mission.management_mode == "ELASTIC": del values["FIXED_PRICE"] elif attribute == "management_mode":