Skip to content

Commit

Permalink
Oprava error 500 pri zmazanom obsahu
Browse files Browse the repository at this point in the history
  • Loading branch information
mireq committed Feb 13, 2019
1 parent ff791ff commit 67f13f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rating/views.py
Expand Up @@ -116,8 +116,9 @@ def get_queryset(self):

def get_context_data(self, **kwargs):
ctx = super().get_context_data(**kwargs)
content_object = self.object.statistics.content_object
ctx.update({
'object_type_verbose_name': get_meta(self.object.statistics.content_object).verbose_name,
'object_type_verbose_name': get_meta(content_object).verbose_name if content_object else '',
'object': self.object,
})
return ctx
Expand Down

0 comments on commit 67f13f6

Please sign in to comment.