Skip to content

Commit

Permalink
Repair generation of OpenAPI with Spectacular (#452)
Browse files Browse the repository at this point in the history
Co-authored-by: Robert Richter <rori@tmapy.cz>
  • Loading branch information
robrichter and Robert Richter committed Sep 19, 2021
1 parent d9667dd commit 0e98508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest_framework_simplejwt/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def validate(self, attrs):

class TokenRefreshSerializer(serializers.Serializer):
refresh = serializers.CharField()
access = serializers.ReadOnlyField()
access = serializers.CharField(read_only=True)

def validate(self, attrs):
refresh = RefreshToken(attrs['refresh'])
Expand Down

0 comments on commit 0e98508

Please sign in to comment.