Exemplo n.º 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)
Exemplo n.º 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)