Commit ea87160c authored by Dan McGee's avatar Dan McGee
Browse files

releng: ensure links are valid for option names with spaces



Can't believe this went unnoticed for so long.

Signed-off-by: default avatarDan McGee <dan@archlinux.org>
parent 20899d59
......@@ -81,6 +81,7 @@ def calculate_option_overview(field_name):
is_rollback = field_name.startswith('rollback_')
option = {
'option': model,
'field_name': field_name,
'name': model._meta.verbose_name,
'is_rollback': is_rollback,
'values': []
......
......@@ -6,7 +6,7 @@
{% for item in option.values %}
<tr>
<td>
<a href="{% url releng-results-for option.name|lower item.value.pk %}">
<a href="{% url releng-results-for option.field_name item.value.pk %}">
{{ item.value.name|lower }}
</a>
</td>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment