def post_delete_site(instance, sender, **kwargs):
 SiteResources.objects.filter(site=instance).delete()
 SitePeople.objects.filter(site=instance).delete()

def post_delete_site ( instance , sender , ** kwargs ) : SiteResources . objects . filter ( site = instance ) . delete ( ) SitePeople . objects . filter ( site = instance ) . delete ( )
signal to delete the siteresources on site delete .