@receiver(post_save, sender=SiteConfiguration)
def update_site_configuration_history(sender, instance, **kwargs):
 SiteConfigurationHistory.objects.create(site=instance.site, values=instance.values, enabled=instance.enabled)

@ receiver ( post_save , sender = SiteConfiguration ) def update_site_configuration_history ( sender , instance , ** kwargs ) : SiteConfigurationHistory . objects . create ( site = instance . site , values = instance . values , enabled = instance . enabled )
add site configuration changes to site configuration history .