mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Removed one too many indent
This commit is contained in:
parent
4768c9cbb3
commit
11745ebd6c
@ -279,7 +279,7 @@ class SupplierPartEdit(AjaxUpdateView):
|
|||||||
# It appears that hiding a MoneyField fails validation
|
# It appears that hiding a MoneyField fails validation
|
||||||
# Therefore the idea to set the value before hiding
|
# Therefore the idea to set the value before hiding
|
||||||
if form.is_valid():
|
if form.is_valid():
|
||||||
form.cleaned_data['single_pricing'] = supplier_part.unit_pricing
|
form.cleaned_data['single_pricing'] = supplier_part.unit_pricing
|
||||||
# Hide the single-pricing field (only for creating a new SupplierPart!)
|
# Hide the single-pricing field (only for creating a new SupplierPart!)
|
||||||
form.fields['single_pricing'].widget = HiddenInput()
|
form.fields['single_pricing'].widget = HiddenInput()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user