blob: 620e5db2912033ed0612e9dbee814e224eb3b43e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
from utils.views import LuxDetailView
from django.views.generic import DetailView, ListView
from utils.views import PaginatedListView, LuxDetailView
from .models import Class
class ClassDetailView(LuxDetailView):
model = Class
class ClassListView(PaginatedListView):
model = Class
def get_context_data(self, **kwargs):
'''
Add breadcrumb path
'''
context = super(ClassListView, self).get_context_data(**kwargs)
context['breadcrumbs'] = ("classes",)
return context
|