InvenTree/InvenTree/company/forms.py
2019-05-07 07:46:29 +10:00

40 lines
748 B
Python

"""
Django Forms for interacting with Company app
"""
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from InvenTree.forms import HelperForm
from .models import Company
class EditCompanyForm(HelperForm):
""" Form for editing a Company object """
class Meta:
model = Company
fields = [
'name',
'description',
'website',
'address',
'phone',
'email',
'contact',
'is_customer',
'is_supplier',
'notes'
]
class CompanyImageForm(HelperForm):
""" Form for uploading a Company image """
class Meta:
model = Company
fields = [
'image'
]