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

Improve rendering for field selection form

This commit is contained in:
Oliver Walters
2019-07-03 20:08:49 +10:00
parent c419207420
commit 29a27ce598
2 changed files with 10 additions and 26 deletions

View File

@@ -55,13 +55,11 @@ class BomUploadSelectFields(HelperForm):
""" Form for selecting BOM fields """
starting_row = forms.IntegerField(required=True, initial=2, help_text='Index of starting row', validators=[MinValueValidator(1)])
row_count = forms.IntegerField(required=True, help_text='Number of rows to process', validators=[MinValueValidator(0)])
class Meta:
model = Part
fields = [
'starting_row',
'row_count',
]