Ticket #8548: validate_verbose_8564.diff

File validate_verbose_8564.diff, 629 bytes (added by Adam Vandenberg, 16 years ago)

Initial stab at a patch.

  • django/core/management/validation.py

     
    218218                    if f not in opts.local_fields:
    219219                        e.add(opts, '"unique_together" refers to %s. This is not in the same model as the unique_together statement.' % f.name)
    220220
     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
    221225    return len(e.errors)
Back to Top