1
0
mirror of https://github.com/django/django.git synced 2025-10-25 06:36:07 +00:00

Revert "Fixed #24474 -- Allowed configuring the admin's empty change list value."

This reverts commit 72f769f494.

There are several test failures that need to be fixed.
This commit is contained in:
Tim Graham
2015-04-08 20:39:59 -04:00
parent 72f769f494
commit 1273a7a0e8
11 changed files with 33 additions and 185 deletions

View File

@@ -125,12 +125,3 @@ class DynamicSearchFieldsChildAdmin(admin.ModelAdmin):
search_fields = super(DynamicSearchFieldsChildAdmin, self).get_search_fields(request)
search_fields += ('age',)
return search_fields
class EmptyValueChildAdmin(admin.ModelAdmin):
empty_value_display = '-empty-'
list_display = ('name', 'age_display', 'age')
def age_display(self, obj):
return obj.age
age_display.empty_value_display = '†'