friendsmap/map/mixins.py

9 lines
255 B
Python
Raw Normal View History

2019-03-02 16:17:48 +01:00
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