Ticket #11058: validation.diff
File validation.diff, 705 bytes (added by , 15 years ago) |
---|
-
django/contrib/admin/validation.py
45 45 if hasattr(cls, 'list_display_links'): 46 46 check_isseq(cls, 'list_display_links', cls.list_display_links) 47 47 for idx, field in enumerate(cls.list_display_links): 48 fetch_attr(cls, model, opts, 'list_display_links[%d]' % idx, field)49 48 if field not in cls.list_display: 50 49 raise ImproperlyConfigured("'%s.list_display_links[%d]'" 51 50 "refers to '%s' which is not defined in 'list_display'."