Skip to content

Commit

Permalink
Do not call constuctor for the serializer exposed for extend schema i…
Browse files Browse the repository at this point in the history
…n the CurrencyExchangeView
  • Loading branch information
martonmiklos committed May 2, 2024
1 parent c4cf54a commit 8c0cf2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/InvenTree/common/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class CurrencyExchangeView(APIView):
permission_classes = [permissions.IsAuthenticated]
serializer_class = None

@extend_schema(responses={200: common.serializers.CurrencyExchangeSerializer()})
@extend_schema(responses={200: common.serializers.CurrencyExchangeSerializer})
def get(self, request, format=None):
"""Return information on available currency conversions."""
# Extract a list of all available rates
Expand Down

0 comments on commit 8c0cf2f

Please sign in to comment.