Skip to content

Commit

Permalink
queryset for TrainingView
Browse files Browse the repository at this point in the history
  • Loading branch information
DahlitzFlorian committed May 1, 2017
1 parent 0f58cc1 commit f2e26e5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions vocab/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ def get_queryset(self):
return Learnset.objects.all().order_by('-creation_date')


class TrainingView(generic.TemplateView):
class TrainingView(generic.DetailView):
"""
Shows trainings-session
"""
template_name = 'vocab/training.html'

def get_queryset(self, learnset_id):
pass
context_object_name = 'learnset'

def get_queryset(self):
return Learnset.objects.all()

0 comments on commit f2e26e5

Please sign in to comment.