magic-removal: Changed error message in model validator to use American spelling for 'initialized'
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2330 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
f0c493f02f
commit
2dbd56795e
|
@ -845,7 +845,7 @@ def get_validation_errors(outfile, app=None):
|
||||||
# Check for deprecated args
|
# Check for deprecated args
|
||||||
dep_args = getattr(f, 'deprecated_args', None)
|
dep_args = getattr(f, 'deprecated_args', None)
|
||||||
if dep_args:
|
if dep_args:
|
||||||
e.add(opts, "'%s' Initialised with deprecated args:%s" % (f.name, ",".join(dep_args)))
|
e.add(opts, "'%s' Initialized with deprecated args:%s" % (f.name, ",".join(dep_args)))
|
||||||
if isinstance(f, models.CharField) and f.maxlength in (None, 0):
|
if isinstance(f, models.CharField) and f.maxlength in (None, 0):
|
||||||
e.add(opts, '"%s": CharFields require a "maxlength" attribute.' % f.name)
|
e.add(opts, '"%s": CharFields require a "maxlength" attribute.' % f.name)
|
||||||
if isinstance(f, models.FloatField):
|
if isinstance(f, models.FloatField):
|
||||||
|
|
Loading…
Reference in New Issue