Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Remove active_tab, this is done with a context processor

Roland Geiderf72b04208735
diff --git a/wger/workout_manager/generic_views.py b/wger/workout_manager/generic_views.py
index e0dd2a8d9..c588a50ae 100644
--- a/wger/workout_manager/generic_views.py
+++ b/wger/workout_manager/generic_views.py
@@ -144,7 +144,6 @@ class YamlFormMixin(ModelFormMixin):
class YamlDeleteMixin(ModelFormMixin):
template_name = 'delete.html'
- active_tab = ''
form_action = ''
form_action_urlname = ''
title = ''
@@ -162,9 +161,6 @@ class YamlDeleteMixin(ModelFormMixin):
# CSRF token
context.update(csrf(self.request))
- # Active tab, on top navigation
- context['active_tab'] = self.active_tab
-
# When viewing the page on it's own, this is not necessary, but when
# opening it on a modal dialog, we need to make sure the POST request
# reaches the correct controller