Commits

Kai Diefenbach  committed 9c9ec16

Return the specific content object

  • Participants
  • Parent commits 9d76f29

Comments (0)

Files changed (1)

File lfc/models.py

             if self.canonical:
                 obj = BaseContent.objects.get(pk=self.canonical.id)
                 if self.has_permission(request.user, "view"):
-                    return obj
+                    return obj.get_content_object()
                 else:
                     return None