2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-12 07:54:14 +00:00

Bug fixes

- Part creation form was setting a field as HiddenInput() rather than its widget
- Added 'comment' file to FileAttachment model
This commit is contained in:
Oliver Walters
2019-05-01 09:40:49 +10:00
parent 7dd960a299
commit 7c11d917de
4 changed files with 26 additions and 3 deletions

View File

@ -98,7 +98,7 @@ class PartCreate(AjaxCreateView):
form = super(AjaxCreateView, self).get_form()
# Hide the default_supplier field (there are no matching supplier parts yet!)
form.fields['default_supplier'] = HiddenInput()
form.fields['default_supplier'].widget = HiddenInput()
return form