Created
August 7, 2019 14:55
-
-
Save akshar-raaj/b792e31bc8a2a4eafd8f49daff6a1370 to your computer and use it in GitHub Desktop.
to_internal_value() date parse
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 to_internal_value(self, value): | |
| value['date_joined'] = parser.parse(value['date_joined']) | |
| return super().to_internal_value(value) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment