mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 12:06:44 +00:00
Skip unchanged lines for matching ID values
This commit is contained in:
parent
ac36048230
commit
89acc778f5
@ -14,7 +14,7 @@ from company.models import SupplierPart
|
|||||||
|
|
||||||
|
|
||||||
class PartResource(ModelResource):
|
class PartResource(ModelResource):
|
||||||
""" Class for managing Part model export """
|
""" Class for managing Part data import/export """
|
||||||
|
|
||||||
# Constuct some extra fields for export
|
# Constuct some extra fields for export
|
||||||
category = Field(attribute='category', widget=widgets.ForeignKeyWidget(PartCategory))
|
category = Field(attribute='category', widget=widgets.ForeignKeyWidget(PartCategory))
|
||||||
@ -27,8 +27,10 @@ class PartResource(ModelResource):
|
|||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Part
|
model = Part
|
||||||
|
skip_unchanged = True
|
||||||
|
report_skipped = False
|
||||||
exclude = [
|
exclude = [
|
||||||
'image', 'bom_checksum', 'bom_checked_by', 'bom_checked_date'
|
'bom_checksum', 'bom_checked_by', 'bom_checked_date'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user