Commit 133064b5 authored by Patrick's avatar Patrick

Do not display the acitve flag when the customer represent the buying group

parent b1f3237a
......@@ -81,8 +81,8 @@ class UserDataForm(forms.ModelForm):
'This customer is responsible of the delivery point (%(delivery_point)s). A customer responsible of a delivery point may not pass order.') % {
'delivery_point': delivery_point,})
is_active = self.cleaned_data["is_active"]
if not is_active:
is_active = self.cleaned_data.get("is_active")
if is_active is not None and not is_active:
delivery_point = LUT_DeliveryPoint.objects.filter(
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment