@receiver(models.signals.post_save, sender=VerificationDeadline)
@receiver(models.signals.post_delete, sender=VerificationDeadline)
def invalidate_deadline_caches(sender, **kwargs):
 cache.delete(VerificationDeadline.ALL_DEADLINES_CACHE_KEY)

@ receiver ( models . signals . post_save , sender = VerificationDeadline ) @ receiver ( models . signals . post_delete , sender = VerificationDeadline ) def invalidate_deadline_caches ( sender , ** kwargs ) : cache . delete ( VerificationDeadline . ALL_DEADLINES_CACHE_KEY )
invalidate the cached verification deadline information .