Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Unlocalize weight number to account for different databases

Roland Geiderb2321a4d0e9d
diff --git a/wger/manager/templates/workout/timer.html b/wger/manager/templates/workout/timer.html
index 57a014960..8a3e10f99 100644
--- a/wger/manager/templates/workout/timer.html
+++ b/wger/manager/templates/workout/timer.html
@@ -1,6 +1,7 @@
{% extends "base.html" %}
{% load url from future %}
{% load i18n %}
+{% load l10n %}
{% load staticfiles %}
{% load wger_extras %}
{% load cache %}
@@ -282,7 +283,7 @@ $(document).ready(function() {
<input name="weight"
id="id-weight-{{step.current_step}}"
placeholder="{% trans 'Weight' %}"
- value="{{step.weight}}"
+ value="{{step.weight|unlocalize}}"
type="number"
autocomplete="off">
</div>