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:
committed by
Mariusz Felisiak
parent
de74a74b4b
commit
d80a258553
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user