Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
def get_serializer_class(self):
if self.request.version == 'v2':
return PostSerializerV2
else:
return super().get_serializer_class()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.