diff --git a/equipment_tracker/transactions/models.py b/equipment_tracker/transactions/models.py index dd968de..65f735c 100644 --- a/equipment_tracker/transactions/models.py +++ b/equipment_tracker/transactions/models.py @@ -43,5 +43,7 @@ class Transaction(models.Model): return f"Transaction #{self.id} under {self.teacher} by {self.borrower}" def save(self, *args, **kwargs): + cache.delete('available_equipment_instances') + cache.delete('equipment_instances') cache.delete('non_finalized_transactions') return super().save(*args, **kwargs)