@receiver(post_save, sender=Job)
def purge_fastly_cache(sender, instance, **kwargs):
 if kwargs.get('raw', False):
  return
 if (instance.status == Job.STATUS_APPROVED):
  purge_url(reverse('jobs:job_detail', kwargs={'pk': instance.pk}))
  purge_url(reverse('jobs:job_list'))
  purge_url(reverse('jobs:job_rss'))

@ receiver ( post_save , sender = Job ) def purge_fastly_cache ( sender , instance , ** kwargs ) : if kwargs . get ( 'raw' , False ) : return if ( instance . status == Job . STATUS_APPROVED ) : purge_url ( reverse ( 'jobs:job_detail' , kwargs = { 'pk' : instance . pk } ) ) purge_url ( reverse ( 'jobs:job_list' ) ) purge_url ( reverse ( 'jobs:job_rss' ) )
purge fastly .