예제 #1
0
파일: models.py 프로젝트: marniramesh/kuma
 def delete_if_exists(self):
     es = WikiDocumentType.get_connection()
     try:
         es.indices.delete(self.prefixed_name)
     except NotFoundError:
         # Can ignore this since it indicates the index doesn't exist
         # and therefore there's nothing to delete.
         pass
예제 #2
0
파일: models.py 프로젝트: jamonation/kuma
 def delete_if_exists(self):
     es = WikiDocumentType.get_connection()
     try:
         es.indices.delete(self.prefixed_name)
     except NotFoundError:
         # Can ignore this since it indicates the index doesn't exist
         # and therefore there's nothing to delete.
         pass