add protocoll link if available
This commit is contained in:
@@ -70,12 +70,14 @@ def show(request, id=None):
|
||||
if post_author:
|
||||
author_image = post_author.image['avatar'].url
|
||||
|
||||
ep_link = (get_pad_link(p.agenda_key), get_pad_link(p.protocol_key))
|
||||
|
||||
context = {
|
||||
"post": p,
|
||||
"author_image": author_image,
|
||||
"next": get_next_dict(p),
|
||||
"related_posts": p.tags.similar_objects(),
|
||||
"ep_link": get_pad_link(p.agenda_key),
|
||||
"ep_link": ep_link,
|
||||
}
|
||||
|
||||
response = render(request, 'posts/show.html', context)
|
||||
|
||||
Reference in New Issue
Block a user