def remove_record_from_csw(sender, instance, using, **kwargs):
"""
Delete all csw records associated with the service. We only
run on service pre_delete to clean up the csw prior to the django db.
"""
if instance.type in ["WMS", "OWS"]:
for record in instance.servicelayer_set.all():
delete_record(record.uuid)
else:
delete_record(instance.uuid)
评论列表
文章目录