mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-18 14:07:41 +00:00
Move Meta class to top of class definition (#4363)
This commit is contained in:
1 parent
139274f356
commit
cc2e7ee8a5
27 files changed
+1085
-1084
No files matched your search
@@ -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