mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-17 18:26:32 +00:00
Finally got migrations working together
This commit is contained in:
@@ -2,10 +2,10 @@ from django import forms
|
||||
from crispy_forms.helper import FormHelper
|
||||
from crispy_forms.layout import Submit
|
||||
|
||||
from .models import Company, SupplierPart
|
||||
from .models import SupplierOrder
|
||||
from .models import Company
|
||||
|
||||
|
||||
"""
|
||||
class EditSupplierOrderForm(forms.ModelForm):
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
@@ -26,7 +26,7 @@ class EditSupplierOrderForm(forms.ModelForm):
|
||||
'notes',
|
||||
'issued_date',
|
||||
]
|
||||
|
||||
"""
|
||||
|
||||
class EditCompanyForm(forms.ModelForm):
|
||||
|
||||
@@ -50,29 +50,6 @@ class EditCompanyForm(forms.ModelForm):
|
||||
'phone',
|
||||
'email',
|
||||
'contact',
|
||||
'image',
|
||||
'notes'
|
||||
]
|
||||
|
||||
|
||||
class EditSupplierPartForm(forms.ModelForm):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(EditSupplierPartForm, self).__init__(*args, **kwargs)
|
||||
self.helper = FormHelper()
|
||||
|
||||
self.helper.form_id = 'id-edit-part-form'
|
||||
self.helper.form_class = 'blueForms'
|
||||
self.helper.form_method = 'post'
|
||||
|
||||
self.helper.add_input(Submit('submit', 'Submit'))
|
||||
|
||||
class Meta:
|
||||
model = SupplierPart
|
||||
fields = [
|
||||
'supplier',
|
||||
'SKU',
|
||||
'part',
|
||||
'description',
|
||||
'URL',
|
||||
'manufacturer',
|
||||
'MPN',
|
||||
]
|
||||
|
Reference in New Issue
Block a user