Explorar o código

Use object.full_url to avoid incorrectly built URLs for BlogPage from the tag_archive view

David Ray %!s(int64=8) %!d(string=hai) anos
pai
achega
68ca56d640
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      bakerydemo/templates/blog/blog_index_page.html

+ 1 - 1
bakerydemo/templates/blog/blog_index_page.html

@@ -6,7 +6,7 @@
 
     {% for blog in blogs %}
         <div>
-            <h2><a href="{{ blog.slug }}">{{ blog.title }}</a></h2>
+            <h2><a href="{{ blog.full_url }}">{{ blog.title }}</a></h2>
             {{ blog.body|truncatewords_html:10 }}
 
             {% for tag in blog.get_tags  %}