Show More
@@ -20,6 +20,7 b" PARAMETER_TRUNCATED = 'truncated'" | |||
|
20 | 20 | PARAMETER_TAG = 'tag' |
|
21 | 21 | PARAMETER_OFFSET = 'offset' |
|
22 | 22 | PARAMETER_DIFF_TYPE = 'type' |
|
23 | PARAMETER_POST = 'post' | |
|
23 | 24 | |
|
24 | 25 | DIFF_TYPE_HTML = 'html' |
|
25 | 26 | DIFF_TYPE_JSON = 'json' |
@@ -114,13 +115,12 b' def get_post(request, post_id):' | |||
|
114 | 115 | |
|
115 | 116 | post = get_object_or_404(Post, id=post_id) |
|
116 | 117 | |
|
117 | context = RequestContext(request) | |
|
118 | context['post'] = post | |
|
118 | params = dict() | |
|
119 | params[PARAMETER_POST] = post | |
|
119 | 120 | if PARAMETER_TRUNCATED in request.GET: |
|
120 |
|
|
|
121 | params[PARAMETER_TRUNCATED] = True | |
|
121 | 122 | |
|
122 | # TODO Use dict here | |
|
123 | return render(request, 'boards/api_post.html', context_instance=context) | |
|
123 | return render(request, 'boards/api_post.html', params) | |
|
124 | 124 | |
|
125 | 125 | |
|
126 | 126 | def api_get_threads(request, count): |
General Comments 0
You need to be logged in to leave comments.
Login now