Fixed left-over link-by-id
This commit is contained in:
parent
dd6e418814
commit
6197888680
|
@ -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>
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue