mirror of
https://github.com/zulip/zulip.git
synced 2025-10-27 10:03:56 +00:00
documentation: Call TemplateView.get correctly.
The calling arguments here are completely wrong. The first argument should be `request`, and `self` should never get passed to `.get`. Because `TemplateView` happened to not use `request`, and we happened to pass `article` as a keyword argument, this error slipped through. Signed-off-by: Zixuan James Li <p359101898@gmail.com>
This commit is contained in:
committed by
Tim Abbott
parent
eb2ee5605c
commit
5a15fd1dd2
@@ -232,7 +232,7 @@ class MarkdownDirectoryView(ApiURLView):
|
||||
|
||||
documentation_article = self.get_path(article)
|
||||
http_status = documentation_article.article_http_status
|
||||
result = super().get(self, article=article)
|
||||
result = super().get(request, article=article)
|
||||
if http_status != 200:
|
||||
result.status_code = http_status
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user