Ticket #2578: list_display_links.diff
File list_display_links.diff, 879 bytes (added by , 18 years ago) |
---|
-
django/core/management.py
946 946 e.add(opts, '"admin.list_display_links", if given, must be set to a list or tuple.') 947 947 else: 948 948 for fn in opts.admin.list_display_links: 949 try:950 f = opts.get_field(fn)951 except models.FieldDoesNotExist:952 e.add(opts, '"admin.list_filter" refers to %r, which isn\'t a field.' % fn)953 949 if fn not in opts.admin.list_display: 954 950 e.add(opts, '"admin.list_display_links" refers to %r, which is not defined in "admin.list_display".' % fn) 955 951 # list_filter