herreweb_site/2023-12-24-old/herreweb_backend/project/serializers.py

7 lines
246 B
Python
Raw Normal View History

2022-12-28 18:51:36 +00:00
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')