Self hosted FLOSS fitness/workout, nutrition and weight tracker
Don't use hard-coded URL paths
Roland Geiderebfb520a2b59
diff --git a/weight/templates/weight_overview.html b/weight/templates/weight_overview.htmlindex fc345d565..12110f865 100644--- a/weight/templates/weight_overview.html+++ b/weight/templates/weight_overview.html@@ -97,7 +97,7 @@-<a href="/weight/add">{% trans "Add weight entry" %}</a>+<a href="{% url weight.views.add None %}">{% trans "Add weight entry" %}</a>{% endblock %}diff --git a/weight/urls.py b/weight/urls.pyindex 87e0cca2a..d7e875af9 100644--- a/weight/urls.py+++ b/weight/urls.py@@ -1,7 +1,7 @@from django.conf.urls import patterns, include, urlurlpatterns = patterns('weight.views',- url(r'^weight/add/(?P<id>\d*)$', 'add'),+ url(r'^weight/add/(?P<id>\w*)$', 'add'),url(r'^weight/export_csv/$', 'export_csv'),url(r'^weight/overview/$', 'overview'),