예제 #1
0
 def on_delete(self, doc):
     if doc.get('is_used'):
         raise SuperdeskApiError(status_code=202, payload={"is_used": True})
     remove_profile_from_templates(doc)
     remove_profile_from_desks(doc)
예제 #2
0
 def on_delete(self, doc):
     if doc.get('is_used'):
         raise SuperdeskApiError(status_code=202, payload={"is_used": True})
     remove_profile_from_templates(doc)
     remove_profile_from_desks(doc)