Self hosted FLOSS fitness/workout, nutrition and weight tracker
Explain why there is a different form for mobile
Roland Geider6aba0667cb98
diff --git a/wger/manager/views/set.py b/wger/manager/views/set.pyindex 4ced75b40..db94aac91 100644--- a/wger/manager/views/set.py+++ b/wger/manager/views/set.py@@ -64,7 +64,10 @@ def create(request, day_pk):if day.get_owner_object().user != request.user:return HttpResponseForbidden()- # Select the correct form depending on the flavour of the request+ # Select the correct form depending on the flavour of the request.+ # The difference is that the mobile form doesn't use the autocompleter for+ # exercises, but 2 dropdowns, one to filter by category and one to select+ # the exercises themselves.if request.flavour == 'mobile':form_class = SetFormMobileelse: