Improvements to stock page

- Fixed URL / view (use class views)
- Better slug lookup
- Better table rendering using ol' mate bootstrap
This commit is contained in:
Oliver committed 2018-04-15 20:10:49 +10:00
1 parent ab4b91cd46
commit 9d89db34b2
17 files changed
+264 -94

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@ class PartIndex(ListView):
def get_context_data(self, **kwargs):
context = super(PartIndex, self).get_context_data(**kwargs)
context = super(PartIndex, self).get_context_data(**kwargs).copy()
# View top-level categories
children = PartCategory.objects.filter(parent=None)