2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-05-03 05:48:47 +00:00
This commit is contained in:
Oliver Walters 2017-03-28 23:14:36 +11:00
parent 9f34f9353e
commit a793b344e8

View File

@ -2,6 +2,7 @@ from rest_framework import serializers
from .models import Part, PartCategory from .models import Part, PartCategory
class PartSerializer(serializers.ModelSerializer): class PartSerializer(serializers.ModelSerializer):
class Meta: class Meta:
model = Part model = Part
@ -11,6 +12,7 @@ class PartSerializer(serializers.ModelSerializer):
'category', 'category',
'stock') 'stock')
class PartCategorySerializer(serializers.ModelSerializer): class PartCategorySerializer(serializers.ModelSerializer):
class Meta: class Meta:
model = PartCategory model = PartCategory