Export full_name for parts

This commit is contained in:
Oliver Walters 2019-09-15 22:23:34 +10:00
parent 7f5aba423a
commit 194ae49914

View File

@ -58,7 +58,7 @@ class StockItemResource(ModelResource):
# Custom manaegrs for ForeignKey fields
part = Field(attribute='part', widget=widgets.ForeignKeyWidget(Part))
part_name = Field(attribute='part__name', readonly=True)
part_name = Field(attribute='part__full_ame', readonly=True)
supplier_part = Field(attribute='supplier_part', widget=widgets.ForeignKeyWidget(SupplierPart))