mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Improved @display(empty_value) example in ModelAdmin.empty_value_display docs.
This commit is contained in:
parent
6174814dbe
commit
eb901681ab
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue