Start building a page to select items based on category.

Requires some new CSS for the side nav.
This commit is contained in:
Tom Price
2016-01-05 20:03:16 +00:00
parent d62fcc8483
commit c0c2314fbe
5 changed files with 9283 additions and 4 deletions

View File

@@ -27,3 +27,8 @@ class SelfUserTrainingRecordView(UserTrainingRecordView):
self.kwargs['pk'] = pk
return self.model.objects.filter(pk=pk)
class TrainingCategoryItemListView(generic.ListView):
model = models.TrainingCategory
template_name = 'training/trainingcategory_item_list.html'