Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Don't pass extend template variable, not needed anymore

Roland Geideraaecf290accc
diff --git a/wger/nutrition/views/ingredient.py b/wger/nutrition/views/ingredient.py
index 6747ed718..11054c2f7 100644
--- a/wger/nutrition/views/ingredient.py
+++ b/wger/nutrition/views/ingredient.py
@@ -188,11 +188,6 @@ class IngredientCreateView(WgerFormMixin, CreateView):
return HttpResponseForbidden()
return super(IngredientCreateView, self).dispatch(request, *args, **kwargs)
- def get_context_data(self, **kwargs):
- context = super(IngredientCreateView, self).get_context_data(**kwargs)
- context['extend_template'] = 'base.html'
- return context
-
class PendingIngredientListView(LoginRequiredMixin, PermissionRequiredMixin, ListView):
"""