Permalink
Browse files

fix invalidate cache

  • Loading branch information...
1 parent 5678c5e commit 5bb03a44c45e0460a494a5d75399f260ce1c9da8 @httpdss httpdss committed Nov 20, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 agilito/models.py
View
2 agilito/models.py
@@ -73,7 +73,7 @@ def invalidate_cache(sender, instance, **kwargs):
ids = []
if isinstance(instance, User):
- ids = [p.id for p in instance.project_set.all()]
+ ids = [pm.project.id for pm in ProjectMember.objects.filter(user=instance)]
elif hasattr(instance, "project"):
ids = [instance.project.id]

0 comments on commit 5bb03a4

Please sign in to comment.