Self hosted FLOSS fitness/workout, nutrition and weight tracker
Send the POST data to the correct controller
Roland Geider29dc14b9b080
diff --git a/wger/exercises/views/categories.py b/wger/exercises/views/categories.pyindex 27ad7e50d..fe2890d7d 100644--- a/wger/exercises/views/categories.py+++ b/wger/exercises/views/categories.py@@ -115,6 +115,6 @@ class ExerciseCategoryDeleteView(YamlDeleteMixin, DeleteView):context = super(ExerciseCategoryDeleteView, self).get_context_data(**kwargs)context['title'] = _('Delete category %s?') % self.object.name- context['form_action'] = reverse('exercise-delete', kwargs={'pk': self.kwargs['pk']})+ context['form_action'] = reverse('exercisecategory-delete', kwargs={'pk': self.object.id})return context