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

Modal form for part creation

This commit is contained in:
Oliver
2018-04-26 18:22:41 +10:00
parent d02b6f3583
commit 280f2c36cb
5 changed files with 34 additions and 30 deletions

View File

@@ -12,10 +12,7 @@ class EditPartForm(forms.ModelForm):
super(EditPartForm, self).__init__(*args, **kwargs)
self.helper = FormHelper()
self.helper.form_id = 'id-edit-part-form'
self.helper.form_method = 'post'
self.helper.add_input(Submit('submit', 'Submit'))
self.helper.form_tag = False
class Meta:
model = Part