mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-17 12:35:46 +00:00
Revert "Set initial value fields to disabled for some forms"
This reverts commit c1271367bd
.
This commit is contained in:
@ -15,12 +15,6 @@ class EditBuildForm(forms.ModelForm):
|
||||
|
||||
self.helper.form_tag = False
|
||||
|
||||
initial = kwargs.get('initial', {})
|
||||
|
||||
for field in ['part']:
|
||||
if field in initial:
|
||||
self.fields['field'].disabled = True
|
||||
|
||||
class Meta:
|
||||
model = Build
|
||||
fields = [
|
||||
|
Reference in New Issue
Block a user