Added post_delete_file_from_resource signal to hs_update_web_services receiver
@@ -4,7 +4,8 @@ from django.dispatch import receiver
from hs_core.signals import pre_metadata_element_create, pre_metadata_element_update, \
pre_delete_resource, post_add_geofeature_aggregation, post_add_generic_aggregation, \
post_add_netcdf_aggregation, post_add_raster_aggregation, post_add_timeseries_aggregation, \
- post_add_reftimeseries_aggregation, post_remove_file_aggregation, post_raccess_change
+ post_add_reftimeseries_aggregation, post_remove_file_aggregation, post_raccess_change, \
+ post_delete_file_from_resource
from hs_core.tasks import update_web_services
from hs_core.models import GenericResource, Party
from django.conf import settings
@@ -162,6 +163,7 @@ def metadata_element_pre_update_handler(sender, **kwargs):
@receiver(post_add_reftimeseries_aggregation)
@receiver(post_remove_file_aggregation)
@receiver(pre_delete_resource)
+@receiver(post_delete_file_from_resource)
@receiver(post_raccess_change)
def hs_update_web_services(sender, **kwargs):
"""Signal to update resource web services."""
