Changes between Version 2 and Version 5 of Ticket #11595
- Timestamp:
- Apr 8, 2011, 6:11:09 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #11595
- Property Owner changed from to
- Property Status new → assigned
-
Ticket #11595 – Description
v2 v5 1 For example, here's what django/db/models/fields/__init__.pyhas for lines 341-348:1 For example, here's what {{{django/db/models/fields/__init__.py}}} has for lines 341-348: 2 2 3 def to_python(self, value): 4 if value is None: 5 return value 6 try: 7 return int(value) 8 except (TypeError, ValueError): 9 raise exceptions.ValidationError( 10 _("This value must be an integer.") ) 3 {{{#!python 4 def to_python(self, value): 5 if value is None: 6 return value 7 try: 8 return int(value) 9 except (TypeError, ValueError): 10 raise exceptions.ValidationError(_("This value must be an integer.")) 11 }}} 11 12 12 13 Changing line 348 to: 13 14 14 _("(%s) must be an integer." % value) ) 15 {{{#!python 16 _("(%s) must be an integer." % value)) 17 }}} 15 18 16 19 means that when you convert a text field to a joined object, you know which one's broken where. (Other places in that file do the same thing)