From d5a644696466e443a590317ac2f892ac279665ab Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 27 Feb 2013 08:40:23 -0600 Subject: Remove caching on reverse_conflicts We started seeing this in production with memcached usage and the upgrade to Django 1.5: PicklingError: Can't pickle : attribute lookup devel.models.UserProfile_allowed_repos failed Without having time to investigate further, something changed, likely due to the whole user profile/configurable user model shenanigans done in Django 1.5. For now, simply don't cache this attribute to work around the problem. Signed-off-by: Dan McGee --- main/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main') diff --git a/main/models.py b/main/models.py index ec5c2bd..9410e13 100644 --- a/main/models.py +++ b/main/models.py @@ -293,7 +293,7 @@ class Package(models.Model): return (sort_order.get(dep.deptype, 1000), dep.name) return sorted(deps, key=sort_key) - @cache_function(123) + #@cache_function(123) def reverse_conflicts(self): """ Returns a list of packages with conflicts against this package. -- cgit v1.2.3-24-g4f1b