Commit 020bbc78 authored by Michal Čihař's avatar Michal Čihař

Fix cache key for not logged in users

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 645ad683
......@@ -68,7 +68,7 @@ class ProjectManager(models.Manager):
"""
projects = self.all()
cache_key = 'acl-project-{0}'.format(user.id)
cache_key = 'acl-project-{0}'.format(user.id if user else 'none')
last_result = cache.get(cache_key)
if last_result is not None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment