openwisp-controller icon indicating copy to clipboard operation
openwisp-controller copied to clipboard

[bug] Runtime modification of OrganizationAdmin

Open okraits opened this issue 5 years ago • 1 comments

In config/admin.py the class OrganizationAdmin is modified at runtime:

https://github.com/openwisp/openwisp-controller/blob/master/openwisp_controller/config/admin.py#L122

Those modifications don't get picked up if someone uses an overriden admin site and registers OrganizationAdmin with this overriden admin site.

This issue is similar to https://github.com/openwisp/openwisp-utils/issues/42.

okraits avatar Jan 07 '20 08:01 okraits

~~I'm not sure if moving those lines to the base admin file would work. If it does work, that could be a solution.~~

There's no base admin file in openwisp-controller.

nemesifier avatar Jan 07 '20 10:01 nemesifier