1
0
Fork 0

Fixed left-over link-by-id

This commit is contained in:
Shgck 2015-05-02 14:53:57 +02:00
parent dd6e418814
commit 6197888680
2 changed files with 2 additions and 2 deletions

View file

@ -19,7 +19,7 @@
<td> <td>
{% for contrib in release.contribs %} {% for contrib in release.contribs %}
<a href="{% url 'artist' contrib.id %}">{{ contrib.name }}</a>{% if not forloop.last %},{% endif %} <a href="{% url 'artist' contrib.slug %}">{{ contrib.name }}</a>{% if not forloop.last %},{% endif %}
{% endfor %} {% endfor %}
</td> </td>

View file

@ -12,7 +12,7 @@ def get_contribs(contributors):
contrib_list = [] contrib_list = []
for contrib in contributors: for contrib in contributors:
contrib_list.append({ contrib_list.append({
"id": contrib.id, "slug": contrib.slug,
"name": contrib.name "name": contrib.name
}) })
return contrib_list return contrib_list