diff gpp/templates/messages/trash.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/trash.html	Mon Jan 17 04:00:59 2011 +0000
+++ b/gpp/templates/messages/trash.html	Thu Jan 20 04:03:48 2011 +0000
@@ -1,4 +1,5 @@
 {% extends 'messages/base.html' %}
+{% load url from future %}
 {% block title %}Messages: Trash{% 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-undelete_bulk %}" method="post" name="messages_box_form"
+   <form action="{% url 'messages-undelete_bulk' %}" method="post" name="messages_box_form"
       onsubmit="return messages_confirm_undelete();">{% csrf_token %}
    <table class="messages">
    <tr>
@@ -26,9 +27,9 @@
    </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><a href="{% url bio.views.view_profile msg.receiver.username %}">
+      <td><a href="{% url 'bio.views.view_profile' msg.receiver.username %}">
          {{ msg.receiver.username }}</a></td>
       <td>
          {% if msg.unread %}<strong>{% endif %}