Simple search filtering for part list

- Needs to be 'generecised'
- Working well for now
This commit is contained in:
Oliver committed 2018-04-24 09:06:30 +10:00
1 parent 08ed128bea
commit 25fcd3e9f1
5 files changed
+99 -19

No files matched your search

+1 -1
View File
@@ -24,7 +24,7 @@ class PartIndex(ListView):
context_object_name = 'parts'
def get_queryset(self):
return Part.objects.filter(category=None)
return Part.objects.all() # filter(category=None)
def get_context_data(self, **kwargs):