Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Add missing decorator

Roland Geider2e2aed562b30
diff --git a/wger/nutrition/views.py b/wger/nutrition/views.py
index 6bfeecf6c..cccb1e885 100644
--- a/wger/nutrition/views.py
+++ b/wger/nutrition/views.py
@@ -175,6 +175,7 @@ def copy(request, pk):
return HttpResponseRedirect(reverse('wger.nutrition.views.view', kwargs={'id': plan.id}))
+@login_required
def export_pdf(request, id):
'''
Generates a PDF with the contents of a nutrition plan