Created
April 17, 2021 10:06
-
-
Save chapimenge3/5fe66b9c0363c326e531f90df1285b34 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
# Restframework | |
from django.db.models import fields | |
from rest_framework import serializers | |
# Project | |
from Todo.models import Todo | |
class TodoSerializer(serializers.ModelSerializer): | |
class Meta: | |
model = Todo | |
fields = "__all__" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment