Translate english
This commit is contained in:
15
app/library/serializers.py
Normal file
15
app/library/serializers.py
Normal 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",
|
||||
)
|
Reference in New Issue
Block a user