SOITA/categories/serializers.py
Hubert Jankowski 7c18f0920a WIP
2021-12-12 11:35:35 +01:00

14 lines
245 B
Python

from rest_framework import serializers
from categories.models import Category
class CategorySerializer(serializers.ModelSerializer):
class Meta:
model = Category
fields = (
"id",
"name",
)