예제 #1
0
파일: edit.py 프로젝트: wayhome25/shuup
 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
예제 #2
0
파일: edit.py 프로젝트: suutari/shoop
 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