Show More
@@ -14,9 +14,9 b' def post_url(*args, **kwargs):' | |||||
14 | post = get_object_or_404(Post, id=post_id) |
|
14 | post = get_object_or_404(Post, id=post_id) | |
15 |
|
15 | |||
16 | if post.thread: |
|
16 | if post.thread: | |
17 |
|
|
17 | link = reverse(thread, kwargs={'post_id': post.thread.id}) \ | |
18 |
|
|
18 | + '#' + str(post_id) | |
19 | else: |
|
19 | else: | |
20 |
|
|
20 | link = reverse(thread, kwargs={'post_id': post_id}) | |
21 |
|
21 | |||
22 | return link |
|
22 | return link |
General Comments 0
You need to be logged in to leave comments.
Login now