search field
[edumed.git] / curriculum / views.py
1 from .models import Competence, Section, Level
2
3
4 from django.views.generic import DetailView, ListView
5
6 class CompetenceDetailView(DetailView):
7     model = Competence
8
9 class CompetencesView(ListView):
10     model = Competence
11
12     def get_context_data(self, **kwargs):
13         print 'kwargs', kwargs
14         context = super(CompetencesView, self).get_context_data(**kwargs)
15
16         queryset = self.get_queryset()
17
18         return context
19