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

Improvements to company API

- Filter by is_manufacturer
- Better table display
This commit is contained in:
Oliver Walters
2020-04-13 12:16:42 +10:00
parent fd45db9e22
commit f427ee4754
7 changed files with 47 additions and 7 deletions

View File

@ -112,7 +112,7 @@ class Company(models.Model):
is_supplier = models.BooleanField(default=True, help_text=_('Do you purchase items from this company?'))
is_manufacturer = models.BooleanField(default=True, help_text=_('Does this company manufacture parts?'))
is_manufacturer = models.BooleanField(default=False, help_text=_('Does this company manufacture parts?'))
def __str__(self):
""" Get string representation of a Company """