Open jeremystretch opened 1 month ago
Dug into this a bit. It can be addressed by iterating through apps.get_models()
under the plugin's ready()
method, however we still have an issue determining change logging support for models because registration of that feature is affected by the same race condition.
We've worked around this temporarily by documenting the need to list netbox_branching
at the end of the PLUGINS
list (see #115).
Plugin Version
v0.4.0
NetBox Version
v4.1.0
Python Version
3.10
Steps to Reproduce
netbox_dns
(or a similar functional plugin)PLUGINS
as:manage.py nbshell
) and inspect model registration for branching support. Note thatnetbox_dns
is absent from the list of recognized apps.PLUGINS
as:netbox_dns
is now included in the list of apps.Expected Behavior
Branching support for all plugins should be registered regardless of the order in which plugins are loaded.
Observed Behavior
Branching support is registered only for plugins which are listed before
netbox_branching
in thePLUGINS
list.