This commit is contained in:
Oliver 2021-06-22 22:16:11 +10:00
parent e29594811b
commit 2fc7c3d883
2 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,7 @@ class InvenTreeAttachmentSerializerField(serializers.FileField):
return os.path.join(str(settings.MEDIA_URL), str(value))
class InvenTreeImageSerializierField(serializers.FileField):
class InvenTreeImageSerializerField(serializers.FileField):
"""
Custom image serializer.
On upload, validate that the file is a valid image file

View File

@ -13,7 +13,7 @@ from sql_util.utils import SubqueryCount, SubquerySum
from djmoney.contrib.django_rest_framework import MoneyField
from InvenTree.serializers import (InvenTreeAttachmentSerializerField,
InvenTreeImageSerializierField,
InvenTreeImageSerializerField,
InvenTreeModelSerializer)
from InvenTree.status_codes import BuildStatus, PurchaseOrderStatus
from stock.models import StockItem