Commit 8bd9c5f5 by Őry Máté

dashboard: workaround for anonymous user

parent 5d86162a
......@@ -6,9 +6,14 @@ class IndexView(TemplateView):
template_name = "dashboard/index.html"
def get_context_data(self, **kwargs):
if self.request.user.is_authenticated():
user = self.request.user
user = None
context = super(IndexView, self).get_context_data(**kwargs)
'instances': Instance.objects.filter(owner=self.request.user),
'instances': Instance.objects.filter(owner=user),
return context
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 sign in to comment