Created
July 22, 2019 19:28
-
-
Save akshar-raaj/b15503fdf3eedf5254713e4b97aea0b2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class UserSerializer(serializers.ModelSerializer): | |
| full_address = serializers.CharField(source='profile.get_full_address') | |
| class Meta: | |
| model = User | |
| fields = ('email', 'first_name', 'last_name', 'full_address') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment