Improvements to company API

- Filter by is_manufacturer
- Better table display

(cherry picked from commit f427ee4754)
This commit is contained in:
Oliver Walters
2020-04-13 12:16:42 +10:00
parent 906ed7f64d
commit 094a0fe709
7 changed files with 47 additions and 7 deletions

View File

@ -43,9 +43,10 @@ class CompanyList(generics.ListCreateAPIView):
]
filter_fields = [
'name',
'is_customer',
'is_manufacturer',
'is_supplier',
'name',
]
search_fields = [