Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #1 — handle validation better at the model field level and made…
… validation much more consistent across the form field and model field This was a doozy. TimeZoneField does not actually use TimeZoneField defined via formfield because it has choices. Django forces TypedChoiceField. This at least makes them behave mostly consistetly. Needed to handle validation at the model field level for 1.2 since we want to deal with a pytz timezone object normally, but when validating we need to work with its string representation. Tests are now passing. There may be some extra minor bits tossed in too for good measure.
- Loading branch information
Showing
4 changed files
with
38 additions
and
20 deletions.
There are no files selected for viewing
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
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
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
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