mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-19 05:25:42 +00:00
Move Meta class to top of class definition (#4363)
This commit is contained in:
@ -9,8 +9,6 @@ from .models import PartLabel, StockItemLabel, StockLocationLabel
|
||||
class StockItemLabelSerializer(InvenTreeModelSerializer):
|
||||
"""Serializes a StockItemLabel object."""
|
||||
|
||||
label = InvenTreeAttachmentSerializerField(required=True)
|
||||
|
||||
class Meta:
|
||||
"""Metaclass options."""
|
||||
|
||||
@ -24,12 +22,12 @@ class StockItemLabelSerializer(InvenTreeModelSerializer):
|
||||
'enabled',
|
||||
]
|
||||
|
||||
label = InvenTreeAttachmentSerializerField(required=True)
|
||||
|
||||
|
||||
class StockLocationLabelSerializer(InvenTreeModelSerializer):
|
||||
"""Serializes a StockLocationLabel object."""
|
||||
|
||||
label = InvenTreeAttachmentSerializerField(required=True)
|
||||
|
||||
class Meta:
|
||||
"""Metaclass options."""
|
||||
|
||||
@ -43,12 +41,12 @@ class StockLocationLabelSerializer(InvenTreeModelSerializer):
|
||||
'enabled',
|
||||
]
|
||||
|
||||
label = InvenTreeAttachmentSerializerField(required=True)
|
||||
|
||||
|
||||
class PartLabelSerializer(InvenTreeModelSerializer):
|
||||
"""Serializes a PartLabel object."""
|
||||
|
||||
label = InvenTreeAttachmentSerializerField(required=True)
|
||||
|
||||
class Meta:
|
||||
"""Metaclass options."""
|
||||
|
||||
@ -61,3 +59,5 @@ class PartLabelSerializer(InvenTreeModelSerializer):
|
||||
'filters',
|
||||
'enabled',
|
||||
]
|
||||
|
||||
label = InvenTreeAttachmentSerializerField(required=True)
|
||||
|
Reference in New Issue
Block a user