Created
July 9, 2019 11:16
-
-
Save akshar-raaj/7761770f213287b658fab00129dd05e2 to your computer and use it in GitHub Desktop.
DRF Vanilla view using serializer
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
| def get_users(request): | |
| users = UserSerializer() | |
| return JsonResponse(users.data) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment