Commits

Cédric Bonhomme  committed 86714cf

Updated pos.html and the logic view for the categories.

  • Participants
  • Parent commits 768f2cc

Comments (0)

Files changed (2)

File blog/templates/post.html

         <ul>
             <div class="title">{{ post.title }}</div>
         <ul>
-                <div class="time">{{ post.created }}</div>
+                <div class="time">Posted the {{ post.created }} in <a href="{% url blog.views.category post.category.title %}">{{ post.category.title }}</a></div>
+                <br />
                 <div class="body">{{ post.content_html|safe }}</div>
         </ul>
 

File blog/views.py

     """
     """
     posts = [post for post in Post.objects.all().order_by("-created") \
-                if post.category.title == category_title]
+                if post.category.title.lower() == category_title.lower()]
     print locals()
     return render_to_response("category.html", locals())