diff gpp/templates/messages/inbox.html @ 310:daa2916f5b34

Fixing 145; New url tag behavior (forwards compatibility) in Django 1.3.
author Brian Neal <bgneal@gmail.com>
date Thu, 20 Jan 2011 04:03:48 +0000
parents 6e7e84707e7d
children 88b2b9cb8c1f
line wrap: on
line diff
--- a/gpp/templates/messages/inbox.html	Mon Jan 17 04:00:59 2011 +0000
+++ b/gpp/templates/messages/inbox.html	Thu Jan 20 04:03:48 2011 +0000
@@ -1,4 +1,5 @@
 {% extends 'messages/base.html' %}
+{% load url from future %}
 {% block title %}Messages: Inbox{% endblock %}
 {% block custom_js %}
    <script type="text/javascript" src="{{ MEDIA_URL }}js/messages/box.js"></script>
@@ -14,7 +15,7 @@
 </ul>
 {% endif %}
 {% if msgs %}
-   <form action="{% url messages-delete_bulk %}" method="post" name="messages_box_form"
+   <form action="{% url 'messages-delete_bulk' %}" method="post" name="messages_box_form"
       onsubmit="return messages_confirm_delete();">{% csrf_token %}
    <table class="messages">
    <tr>
@@ -25,7 +26,7 @@
    </tr>
    {% for msg in msgs %}
    <tr>
-      <td><a href="{% url bio.views.view_profile msg.sender.username %}">
+      <td><a href="{% url 'bio.views.view_profile' msg.sender.username %}">
          {{ msg.sender.username }}</a></td>
       <td>
          {% if msg.unread %}<strong>{% endif %}