def post_delete_profile(instance, sender, **kwargs):
 if (not instance.is_superuser):
  current_site = Site.objects.get_current()
  SitePeople.objects.get(site=current_site).people.remove(instance)

def post_delete_profile ( instance , sender , ** kwargs ) : if ( not instance . is_superuser ) : current_site = Site . objects . get_current ( ) SitePeople . objects . get ( site = current_site ) . people . remove ( instance )
signal to delete the sitepeople on profile delete .