Permalink
Browse files

ella.core.cache already returns proper subclass

  • Loading branch information...
1 parent f91e485 commit 71ddba6a84d3a97197232d36c72b7307c75973c4 @HonzaKral HonzaKral committed Aug 28, 2012
Showing with 3 additions and 5 deletions.
  1. +3 −5 ella/core/views.py
View
@@ -183,13 +183,11 @@ def get_context(self, request, category, slug, year, month, day, id):
# future publish, render if accessed by logged in staff member
raise Http404
- obj = publishable.target
-
context = {
- 'object' : obj,
+ 'object' : publishable,
'category' : cat,
- 'content_type_name' : slugify(obj.content_type.model_class()._meta.verbose_name_plural),
- 'content_type' : obj.content_type
+ 'content_type_name' : slugify(publishable.content_type.model_class()._meta.verbose_name_plural),
+ 'content_type' : publishable.content_type
}
return context

0 comments on commit 71ddba6

Please sign in to comment.