mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 03:26:45 +00:00
- Do not override specified default values
This commit is contained in:
parent
92f6f8b1f7
commit
0491b10438
@ -166,7 +166,8 @@ class DataImportSession(models.Model):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
# Extract a "default" value for the field, if one exists
|
# Extract a "default" value for the field, if one exists
|
||||||
if 'default' in field_def:
|
# Skip if one has already been provided by the user
|
||||||
|
if field not in self.field_defaults and 'default' in field_def:
|
||||||
self.field_defaults[field] = field_def['default']
|
self.field_defaults[field] = field_def['default']
|
||||||
|
|
||||||
# Generate a list of possible column names for this field
|
# Generate a list of possible column names for this field
|
||||||
|
Loading…
x
Reference in New Issue
Block a user