Skip to content

Commit

Permalink
Tweak for data import (#9010)
Browse files Browse the repository at this point in the history
- Do not override specified default values
  • Loading branch information
SchrodingersGat authored Feb 1, 2025
1 parent c077e2b commit 56bfbfb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/backend/InvenTree/importer/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ def extract_columns(self):
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
Expand Down

0 comments on commit 56bfbfb

Please sign in to comment.