Migrate pagevote and bookmark to use content_type
This commit is contained in:
parent
64495be799
commit
36e27321f7
19 changed files with 285 additions and 87 deletions
|
@ -109,9 +109,6 @@ class PostList(HomeFeedView):
|
|||
context["page_type"] = "blog"
|
||||
return context
|
||||
|
||||
def get_comment_page(self, post):
|
||||
return "b:%s" % post.id
|
||||
|
||||
|
||||
class TicketFeed(HomeFeedView):
|
||||
model = Ticket
|
||||
|
@ -180,9 +177,6 @@ class PostView(TitleMixin, CommentedDetailView, PageVoteDetailView, BookMarkDeta
|
|||
def get_title(self):
|
||||
return self.object.title
|
||||
|
||||
def get_comment_page(self):
|
||||
return "b:%s" % self.object.id
|
||||
|
||||
def get_context_data(self, **kwargs):
|
||||
context = super(PostView, self).get_context_data(**kwargs)
|
||||
context["og_image"] = self.object.og_image
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue