Created
March 19, 2020 06:47
-
-
Save xb4dc0d3/ec8f6817960f2a06fd910598ad9ac062 to your computer and use it in GitHub Desktop.
This file contains 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
from rest_framework import serializer | |
# Bad (if you search "result" maybe the related result more than 100 occurence) | |
result = serializer.serialize(data_mahasiswa, 100) | |
# Good | |
result_json_mahasiswa = serializer.serialize(data_mahasiswa, 100) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment