Created
February 10, 2020 20:46
-
-
Save Kristian-Roopnarine/ec5c278466f66670b2eee451bfaf847b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from rest_framework import serializers | |
from backend.models import ProjectInfo | |
# project serializer | |
class ProjectInfoSerializer(serializers.ModelSerializer): | |
class Meta: | |
model = ProjectInfo | |
fields = ['name','description','github','demo','image'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment