views.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:exchange 作者: boundlessgeo 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号