[4.0.x] Improved @display(empty_value) example in ModelAdmin.empty_value_display docs.
Backport of eb901681ab
from main
This commit is contained in:
parent
c46e996307
commit
b93fb3d6be
|
@ -248,7 +248,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):
|
||||
|
|
Loading…
Reference in New Issue