mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
PEP test
This commit is contained in:
parent
9f34f9353e
commit
a793b344e8
@ -2,6 +2,7 @@ from rest_framework import serializers
|
||||
|
||||
from .models import Part, PartCategory
|
||||
|
||||
|
||||
class PartSerializer(serializers.ModelSerializer):
|
||||
class Meta:
|
||||
model = Part
|
||||
@ -11,6 +12,7 @@ class PartSerializer(serializers.ModelSerializer):
|
||||
'category',
|
||||
'stock')
|
||||
|
||||
|
||||
class PartCategorySerializer(serializers.ModelSerializer):
|
||||
class Meta:
|
||||
model = PartCategory
|
||||
|
Loading…
Reference in New Issue
Block a user