Ticket #8548: validate_verbose_8564.diff
File validate_verbose_8564.diff, 629 bytes (added by , 16 years ago) |
---|
-
django/core/management/validation.py
218 218 if f not in opts.local_fields: 219 219 e.add(opts, '"unique_together" refers to %s. This is not in the same model as the unique_together statement.' % f.name) 220 220 221 # Check verbose_name length 222 if len(opts.verbose_name) > 50: 223 e.add(opts, 'verbose_name "%s" is too long.' % opts.verbose_name) 224 221 225 return len(e.errors)