Translate english

This commit is contained in:
Andros Fenollosa
2021-07-14 16:19:03 +02:00
parent 997ad1f3e8
commit d04d21ae5b
24 changed files with 149 additions and 205 deletions

View File

@ -0,0 +1,15 @@
# app/Library/serializers.py
from rest_framework import serializers
from .models import Book
class BookSerializer(serializers.ModelSerializer):
class Meta:
model = Book
fields = "__all__"
read_only_fields = (
"id",
"created_at",
"updated_at",
)