Created
September 7, 2022 12:57
-
-
Save DJWOMS/1957cbdb63b2a2d2ae9bdeb52e7b4d50 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
serializer = CommentSerializer(data=data) | |
serializer.is_valid() | |
# True | |
serializer.validated_data | |
# {'content': 'My content', 'email': '[email protected]', 'created': datetime.datetime(2022, 09, 06, 16, 20, 09, 822243)} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment