From d1ba92a62141843ca1100bd79f9cce4aca374c6d Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Sun, 22 Jun 2014 15:13:04 +0000 Subject: [PATCH] Fix get_post_link template tag It now generates dates in links correctly --- blog/templatetags/blog_link.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/blog/templatetags/blog_link.py b/blog/templatetags/blog_link.py index 4c86a82..580b14a 100644 --- a/blog/templatetags/blog_link.py +++ b/blog/templatetags/blog_link.py @@ -12,4 +12,5 @@ def get_post_relative_link(post): @register.simple_tag(takes_context = True) def get_post_link(context, post): - return context['request'].build_absolute_uri(reverse('blog:read', args=(post.created_at.year, post.created_at.month, post.created_at.day, post.slug))) + return context['request'].build_absolute_uri(get_post_relative_link(post)) +