Browse Source

Fix displaying the type of subscription in template

Baptiste Jonglez 10 years ago
parent
commit
fff10631f9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      coin/members/templates/members/subscriptions.html

+ 2 - 2
coin/members/templates/members/subscriptions.html

@@ -16,8 +16,8 @@
     <tbody>
         {% for subscription in subscriptions %}
         <tr>
-            <td>{{ subscription.offer.type }}</td>
-            <td>{{ subscription.offer.name }}</td>
+            <td>{{ subscription.offer.get_configuration_type_display }}</td>
+            <td>{{ subscription.offer.name }}</td>
             <td>{{ subscription.subscription_date }}</td>
             <td>{{ subscription.configuration.comment }}</td>
             <td>{% if subscription.configuration %}<a href="{% url subscription.configuration.get_url_namespace|add:":details" id=subscription.configuration.id %}"><i class="fa fa-cog"></i> Configuration</a>{% endif %}</td>