2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-09 07:00:56 +00:00

Fixed stock import as it was not validating the serial properly (#1559)

This commit is contained in:
Francois
2021-05-06 16:57:16 -05:00
committed by GitHub
parent 3a1c233bff
commit 5ed17022f2
2 changed files with 3 additions and 3 deletions

View File

@ -56,7 +56,7 @@ class LocationAdmin(ImportExportModelAdmin):
class StockItemResource(ModelResource):
""" Class for managing StockItem data import/export """
# Custom manaegrs for ForeignKey fields
# Custom managers for ForeignKey fields
part = Field(attribute='part', widget=widgets.ForeignKeyWidget(Part))
part_name = Field(attribute='part__full_name', readonly=True)