From 47b7fa18e09a4c8b9bb949cd9358f992a9694313 Mon Sep 17 00:00:00 2001 From: Arsen Date: Tue, 5 Nov 2024 23:32:49 +0200 Subject: [PATCH] changed name variable pk --- author/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/author/serializers.py b/author/serializers.py index 7ce4915..7641d4b 100644 --- a/author/serializers.py +++ b/author/serializers.py @@ -5,7 +5,7 @@ class AuthorSerializer(serializers.ModelSerializer): - id = serializers.IntegerField(read_only=True) + pk = serializers.IntegerField(read_only=True) first_name = serializers.CharField(max_length=64) last_name = serializers.CharField(max_length=64) pseudonym = serializers.CharField(max_length=64, required=False)