Permalink
Browse files

fix clear_criterion_cache

  • Loading branch information...
diefenbach committed Jan 4, 2018
1 parent a6febfe commit e85a1f534ff812fc434d064161af67504524e3b5
Showing with 1 addition and 1 deletion.
  1. +1 −1 lfs/caching/listeners.py
View
@@ -344,6 +344,6 @@ def update_topseller_cache(topseller):
@receiver(pre_delete, sender=PaymentMethodCriterion)
@receiver(pre_delete, sender=ShippingMethodCriterion)
@receiver(pre_delete, sender=WidthCriterion)
def clear_criterion_cache(sender, instance, created, **kwargs):
def clear_criterion_cache(sender, instance, **kwargs):
cache_key = u'criteria_for_model_{}_{}'.format(instance.content_id, instance.content_type.pk)
cache.delete(cache_key)

0 comments on commit e85a1f5

Please sign in to comment.