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

Modal form is working for 'create new category'

- Had to set form.helper.form_tag to False (so we could control form tags manually)
- Created a 'json' model view
This commit is contained in:
Oliver
2018-04-25 12:46:58 +10:00
parent 9004086632
commit 8bc4050d05
5 changed files with 84 additions and 24 deletions

View File

@@ -42,9 +42,10 @@ class EditCategoryForm(forms.ModelForm):
super(EditCategoryForm, self).__init__(*args, **kwargs)
self.helper = FormHelper()
self.helper.form_id = 'id-edit-part-form'
self.helper.form_method = 'post'
#self.helper.form_id = 'id-edit-part-form'
#self.helper.form_method = 'post'
self.helper.form_tag = False
#self.helper.add_input(Submit('submit', 'Submit'))
class Meta: