mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 13:15:43 +00:00 
			
		
		
		
	Remove unused Form
This commit is contained in:
		| @@ -22,42 +22,6 @@ from .models import SupplierPart | ||||
| from .models import SupplierPriceBreak | ||||
|  | ||||
|  | ||||
| class EditCompanyForm(HelperForm): | ||||
|     """ Form for editing a Company object """ | ||||
|  | ||||
|     field_prefix = { | ||||
|         'website': 'fa-globe-asia', | ||||
|         'email': 'fa-at', | ||||
|         'address': 'fa-envelope', | ||||
|         'contact': 'fa-user-tie', | ||||
|         'phone': 'fa-phone', | ||||
|     } | ||||
|  | ||||
|     currency = django.forms.ChoiceField( | ||||
|         required=False, | ||||
|         label=_('Currency'), | ||||
|         help_text=_('Default currency used for this company'), | ||||
|         choices=[('', '----------')] + djmoney.settings.CURRENCY_CHOICES, | ||||
|         initial=currency_code_default, | ||||
|     ) | ||||
|  | ||||
|     class Meta: | ||||
|         model = Company | ||||
|         fields = [ | ||||
|             'name', | ||||
|             'description', | ||||
|             'website', | ||||
|             'address', | ||||
|             'currency', | ||||
|             'phone', | ||||
|             'email', | ||||
|             'contact', | ||||
|             'is_supplier', | ||||
|             'is_manufacturer', | ||||
|             'is_customer', | ||||
|         ] | ||||
|  | ||||
|  | ||||
| class CompanyImageForm(HelperForm): | ||||
|     """ Form for uploading a Company image """ | ||||
|  | ||||
|   | ||||
| @@ -6,6 +6,8 @@ from rest_framework import serializers | ||||
|  | ||||
| from sql_util.utils import SubqueryCount | ||||
|  | ||||
| import djmoney.settings | ||||
|  | ||||
| from InvenTree.serializers import InvenTreeModelSerializer | ||||
| from InvenTree.serializers import InvenTreeImageSerializerField | ||||
|  | ||||
|   | ||||
| @@ -30,7 +30,7 @@ from .models import SupplierPriceBreak | ||||
|  | ||||
| from part.models import Part | ||||
|  | ||||
| from .forms import EditCompanyForm, EditManufacturerPartParameterForm | ||||
| from .forms import EditManufacturerPartParameterForm | ||||
| from .forms import CompanyImageForm | ||||
| from .forms import EditManufacturerPartForm | ||||
| from .forms import EditSupplierPartForm | ||||
|   | ||||
		Reference in New Issue
	
	Block a user