added sourcePerson serializers

Signed-off-by: Jochen Mehlich <contact@jochenmehlich.de>
This commit is contained in:
Jochen Mehlich 2023-11-29 18:47:34 +01:00
parent 1b1f653711
commit 1849b2edf9
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,7 @@
from rest_framework import serializers
from .models import sourcePerson
class sourcePersonSerializer(serializers.ModelSerializer):
class Meta:
model = sourcePerson
fields = ["id", "name", "description", "isActive", "isArchived", "created_at", "updated_at"]

View File

@ -1,3 +1,4 @@
from django.shortcuts import render
# Create your views here.