From eb901681ab58c008f7bbbe555e5f43f8e0893bd3 Mon Sep 17 00:00:00 2001 From: mangelozzi Date: Thu, 30 Dec 2021 12:39:04 +0200 Subject: [PATCH] Improved @display(empty_value) example in ModelAdmin.empty_value_display docs. --- docs/ref/contrib/admin/index.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index 7b97ee56384..4449afaaa63 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -249,7 +249,7 @@ subclass:: from django.contrib import admin class AuthorAdmin(admin.ModelAdmin): - fields = ('name', 'title', 'view_birth_date') + list_display = ('name', 'title', 'view_birth_date') @admin.display(empty_value='???') def view_birth_date(self, obj):