Remove unnecessary fields from PostView
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
@@ -229,10 +229,6 @@ class ReplyCreateView(CreateView):
|
|||||||
|
|
||||||
|
|
||||||
class PostView(TemplateView):
|
class PostView(TemplateView):
|
||||||
model = Post
|
|
||||||
slug_field = "url"
|
|
||||||
slug_url_kwarg = "url"
|
|
||||||
|
|
||||||
template_name = "board/post_detail.html"
|
template_name = "board/post_detail.html"
|
||||||
|
|
||||||
def get_context_data(self, **kwargs):
|
def get_context_data(self, **kwargs):
|
||||||
|
|||||||
Reference in New Issue
Block a user