示例#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