Replace normalize with integer wrapper for quantity field

This commit is contained in:
eeintech 2021-04-08 14:35:47 -04:00
parent 5e0e364b6c
commit 7491cda313

View File

@ -180,7 +180,7 @@ class BomItemResource(ModelResource):
Ref: https://django-import-export.readthedocs.io/en/latest/getting_started.html#advanced-data-manipulation-on-export
"""
return normalize(item.quantity)
return int(item.quantity)
def before_export(self, queryset, *args, **kwargs):