Exemplo n.º 1
0
 def get_object(self, queryset=None):
     obj = super(SupplierEditView, self).get_object(queryset)
     check_and_raise_if_only_one_allowed("SHUUP_ENABLE_MULTIPLE_SUPPLIERS",
                                         obj)
     return obj
Exemplo n.º 2
0
 def get_object(self, queryset=None):
     obj = super(SupplierEditView, self).get_object(queryset)
     check_and_raise_if_only_one_allowed("SHUUP_ENABLE_MULTIPLE_SUPPLIERS", obj)
     return obj