SOITA/categories/serializers.py

14 lines
245 B
Python
Raw Normal View History

2021-12-12 11:35:35 +01:00
from rest_framework import serializers
from categories.models import Category
class CategorySerializer(serializers.ModelSerializer):
class Meta:
model = Category
fields = (
"id",
"name",
)