Django

Code

Changeset 5778

Show
Ignore:
Timestamp:
07/30/07 12:25:35 (1 year ago)
Author:
gwilson
Message:

Fixed call to ugettext, which is imported as _.
Changed raise to conform to PEP 3109 and wrapped the long line.
Added beginnings of tests for model fields.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/db/models/fields/__init__.py

    r5725 r5778  
    621621            return decimal.Decimal(value) 
    622622        except decimal.InvalidOperation: 
    623             raise validators.ValidationError, ugettext("This value must be a decimal number.") 
     623            raise validators.ValidationError( 
     624                _("This value must be a decimal number.")) 
    624625 
    625626    def _format(self, value):