mirror of
https://github.com/jazzband/django-admin2.git
synced 2026-04-12 19:01:04 +00:00
Use utils.model_options().
This commit is contained in:
parent
11f193ffc9
commit
65de6f148f
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ def delete_selected(request, queryset):
|
|||
template = 'admin2/bootstrap/delete_selected_confirmation.html'
|
||||
|
||||
def _format_callback(obj):
|
||||
opts = obj._meta
|
||||
opts = utils.model_options(obj)
|
||||
return '%s: %s' % (force_text(capfirst(opts.verbose_name)),
|
||||
force_text(obj))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue