Ticket #2578: django_2578.diff

File django_2578.diff, 881 bytes (added by Christopher Lenz <cmlenz@…>, 18 years ago)

Slightly different patch

  • django/core/management.py

     
    959959                        try:
    960960                            f = opts.get_field(fn)
    961961                        except models.FieldDoesNotExist:
    962                             e.add(opts, '"admin.list_filter" refers to %r, which isn\'t a field.' % fn)
     962                            if not hasattr(cls, fn):
     963                                e.add(opts, '"admin.list_display_links" refers to %r, which isn\'t an attribute, method or property.' % fn)
    963964                        if fn not in opts.admin.list_display:
    964965                            e.add(opts, '"admin.list_display_links" refers to %r, which is not defined in "admin.list_display".' % fn)
    965966                # list_filter
Back to Top