Ticket #2578: list_display_links.diff

File list_display_links.diff, 879 bytes (added by robbie <robbie@…>, 18 years ago)

Patch to remove unnecessary field check

  • django/core/management.py

     
    946946                    e.add(opts, '"admin.list_display_links", if given, must be set to a list or tuple.')
    947947                else:
    948948                    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)
    953949                        if fn not in opts.admin.list_display:
    954950                            e.add(opts, '"admin.list_display_links" refers to %r, which is not defined in "admin.list_display".' % fn)
    955951                # list_filter
Back to Top