Ticket #2467: 2467.diff
File 2467.diff, 845 bytes (added by , 18 years ago) |
---|
-
management.py
953 953 f = opts.get_field(fn) 954 954 except models.FieldDoesNotExist: 955 955 e.add(opts, '"admin.list_filter" refers to %r, which isn\'t a field.' % fn) 956 # date_hierarchy 957 if isinstance(opts.admin.date_hierarchy, str): 958 try: 959 f = opts.get_field(opts.admin.date_hierarchy) 960 except models.FieldDoesNotExist: 961 e.add(opts, '"admin.date_hierarchy" refers to %r, which isn\'t a field.' % opts.admin.date_hierarchy) 956 962 957 963 # Check ordering attribute. 958 964 if opts.ordering: