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
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