Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Don't localize IDs

Roland Geiderdb261636f396
diff --git a/wger/manager/templates/schedule/view.html b/wger/manager/templates/schedule/view.html
index b8489a50b..61110dbe4 100644
--- a/wger/manager/templates/schedule/view.html
+++ b/wger/manager/templates/schedule/view.html
@@ -1,6 +1,5 @@
{% extends "base.html" %}
-{% load i18n %}
-{% load static wger_extras crispy_forms_tags %}
+{% load i18n static wger_extras crispy_forms_tags l10n %}
{# #}
{# Opengraph #}
@@ -262,7 +261,7 @@
<div class="modal-body">
<form class="wger-form">
{% crispy download_form %}
- <div id="pdf-download-info" data-schedule-id="{{ schedule.id }}" data-uid="{{ uid }}"
+ <div id="pdf-download-info" data-schedule-id="{{ schedule.id|unlocalize }}" data-uid="{{ uid }}"
data-token="{{ token }}"></div>
</form>
</div>
diff --git a/wger/manager/templates/workout/view.html b/wger/manager/templates/workout/view.html
index 0f4c46826..11fa48209 100644
--- a/wger/manager/templates/workout/view.html
+++ b/wger/manager/templates/workout/view.html
@@ -1,7 +1,5 @@
{% extends "base.html" %}
-{% load i18n %}
-{% load static %}
-{% load wger_extras %}
+{% load i18n l10n static wger_extras %}
{# #}
{# Opengraph #}
@@ -99,7 +97,7 @@
</div>
<div class="modal-body">
<form class="wger-form">
- <div id="pdf-download-info" data-workout-id="{{ workout.id }}" data-uid="{{ uid }}"
+ <div id="pdf-download-info" data-workout-id="{{ workout.id|unlocalize }}" data-uid="{{ uid }}"
data-token="{{ token }}"></div>
<div class="form-group form-check-inline">
<input type="radio" name="pdf_type" class="form-check-input" id="id_type_log" value="log"