We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a970090 commit 3b84cc9Copy full SHA for 3b84cc9
example/serializers.py
@@ -1,7 +1,9 @@
1
from rest_framework import serializers
2
+from example.models import Blog
3
4
-class BlogSerializer(serializers.Serializer):
5
+class BlogSerializer(serializers.ModelSerializer):
6
7
class Meta:
8
+ model = Blog
9
fields = ('name', )
0 commit comments