Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Correctly check for existence of options

Roland Geiderd60d896de57e
diff --git a/wger/gym/templates/contract/view.html b/wger/gym/templates/contract/view.html
index 815c14692..bc470b145 100644
--- a/wger/gym/templates/contract/view.html
+++ b/wger/gym/templates/contract/view.html
@@ -36,7 +36,7 @@
</tr>
{% endif %}
- {% if object.options %}
+ {% if object.options.exists %}
<tr>
<th>{% trans "Options" %}</th>
<td colspan="3">