2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-08 12:50:55 +00:00

Javascript consolidation

This commit is contained in:
Oliver
2018-04-29 12:25:07 +10:00
parent 55310be393
commit aca0d236ee
12 changed files with 71 additions and 26 deletions

View File

@@ -5,6 +5,22 @@ from .models import Part, PartCategory, BomItem
from .models import SupplierPart
class PartImageForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(PartImageForm, self).__init__(*args, **kwargs)
self.helper = FormHelper()
self.helper.form_tag = False
class Meta:
model = Part
fields = [
'image',
]
class EditPartForm(forms.ModelForm):
def __init__(self, *args, **kwargs):