Closed fabiovasini closed 5 years ago
Hello,
Is there a proper way to add new fields in the TokenView response?
TokenView
My approach:
class MyTokenView(TokenView): def post(self, request, *args, **kwargs): response = super().response(request, *args, **kwargs) response['field_key'] = 'field_value' return response
You've got the right approach !
Hello,
Is there a proper way to add new fields in the
TokenView
response?My approach: