Ticket #11058: validation.diff

File validation.diff, 705 bytes (added by cmbeelby, 15 years ago)
  • django/contrib/admin/validation.py

     
    4545    if hasattr(cls, 'list_display_links'):
    4646        check_isseq(cls, 'list_display_links', cls.list_display_links)
    4747        for idx, field in enumerate(cls.list_display_links):
    48             fetch_attr(cls, model, opts, 'list_display_links[%d]' % idx, field)
    4948            if field not in cls.list_display:
    5049                raise ImproperlyConfigured("'%s.list_display_links[%d]'"
    5150                        "refers to '%s' which is not defined in 'list_display'."
Back to Top