2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-19 05:25:42 +00:00

Simple search filtering for part list

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

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):