mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-14 11:03:10 +00:00
Tweak for data import (#9010)
- Do not override specified default values
This commit is contained in:
parent
c077e2b605
commit
56bfbfb1b4
@ -170,7 +170,8 @@ class DataImportSession(models.Model):
|
||||
continue
|
||||
|
||||
# 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']
|
||||
|
||||
# Generate a list of possible column names for this field
|
||||
|
Loading…
x
Reference in New Issue
Block a user