Removed cache for UserTestGroup in debug mode.

This commit is contained in:
Bridger Maxwell
2012-08-06 11:37:47 -04:00
parent cbab4f1006
commit a9c122d737

View File

@@ -44,6 +44,8 @@ def user_groups(user):
# Kill caching on dev machines -- we switch groups a lot
group_names = cache.get(key)
if settings.DEBUG:
group_names = None
if group_names is None:
group_names = [u.name for u in UserTestGroup.objects.filter(users=user)]