Code

Ticket #11058: validation.diff

File validation.diff, 705 bytes (added by cmbeelby, 4 years ago)
Line 
1Index: django/contrib/admin/validation.py
2===================================================================
3--- django/contrib/admin/validation.py  (revision 12909)
4+++ django/contrib/admin/validation.py  (working copy)
5@@ -45,7 +45,6 @@
6     if hasattr(cls, 'list_display_links'):
7         check_isseq(cls, 'list_display_links', cls.list_display_links)
8         for idx, field in enumerate(cls.list_display_links):
9-            fetch_attr(cls, model, opts, 'list_display_links[%d]' % idx, field)
10             if field not in cls.list_display:
11                 raise ImproperlyConfigured("'%s.list_display_links[%d]'"
12                         "refers to '%s' which is not defined in 'list_display'."