gestioCOF/bds/views.py

15 lines
401 B
Python
Raw Normal View History

2020-06-05 17:02:16 +02:00
from django.views.generic import TemplateView
from bds.autocomplete import bds_search
2020-06-07 21:01:54 +02:00
from bds.mixins import StaffRequiredMixin
2020-07-01 22:29:07 +02:00
from shared.views import AutocompleteView
2020-06-05 17:02:16 +02:00
2020-07-01 22:29:07 +02:00
class BDSAutocompleteView(StaffRequiredMixin, AutocompleteView):
2020-06-05 17:02:16 +02:00
template_name = "bds/search_results.html"
2020-07-01 22:29:07 +02:00
search_composer = bds_search
2020-06-07 20:58:33 +02:00
2020-06-07 21:01:54 +02:00
class Home(StaffRequiredMixin, TemplateView):
2020-06-07 20:58:33 +02:00
template_name = "bds/home.html"