1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #33028 -- Used ModelAdmin's opts attribute instead of model._meta.

This commit is contained in:
Marcelo Galigniana
2022-06-20 13:12:00 -03:00
committed by Mariusz Felisiak
parent de74a74b4b
commit d80a258553
3 changed files with 46 additions and 58 deletions

View File

@@ -41,7 +41,7 @@ class ActionAdmin(admin.ModelAdmin):
return update_wrapper(wrapper, view)
info = self.model._meta.app_label, self.model._meta.model_name
info = self.opts.app_label, self.opts.model_name
view_name = "%s_%s_add" % info