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)