herreweb_site/obsolete/herreweb_backend/project/serializers.py

7 lines
246 B
Python

from rest_framework import serializers
from .models import Project
class ProjectSerializer(serializers.ModelSerializer):
class Meta:
model = Project
fields = ('id' ,'title', 'description', 'status', 'image', 'rtd_url', 'url')