Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed #8298: Added a to_python method for integer fields. This ensure…
…s that the data from deserialized instances is of correct type prior to saving. Thanks to Andrew Badr for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8515 bcc190cf-cafb-0310-a4f2-bffc1f526a37
- Loading branch information
1 parent
e822fd7
commit 11e4388
Showing
4 changed files
with
35 additions
and
3 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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,8 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<django-objects version="1.0"> | |||
<object pk="10" model="fixtures_regress.animal"> | |||
<field type="CharField" name="name">Emu</field> | |||
<field type="CharField" name="latin_name">Dromaius novaehollandiae</field> | |||
<field type="IntegerField" name="count">42</field> | |||
</object> | |||
</django-objects> |
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