diff --git a/gym/mixins.py b/gym/mixins.py index 99ade3b..234e2be 100644 --- a/gym/mixins.py +++ b/gym/mixins.py @@ -4,3 +4,13 @@ class SessionResetMixin: del request.session['session_pk'] return super().dispatch(request, *args, **kwargs) + + +class QuickActionsMixin: + def get_quick_actions(self): + return [] + + def get_context_data(self, **kwargs): + context = super().get_context_data(**kwargs) + context['quick_actions'] = self.get_quick_actions() + return context diff --git a/gym/templates/gym/base.html b/gym/templates/gym/base.html index def3f22..835db0d 100644 --- a/gym/templates/gym/base.html +++ b/gym/templates/gym/base.html @@ -22,6 +22,28 @@ {% endfor %} + +