File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ at [https://netboxlabs.com/blog/introducing-diode-streamlining-data-ingestion-in
2020| >= 4.2.3 | 1.1.0 |
2121| >= 4.2.3 | 1.2.0 |
2222| >= 4.4.0 | 1.4.0 |
23+ | >= 4.4.0 | 1.4.1 |
2324
2425## Installation
2526
Original file line number Diff line number Diff line change 11name : diode-netbox-plugin
22services :
33 netbox : &netbox
4- image : netboxcommunity/netbox:v4.3.3 -3.3.0 -diode-netbox-plugin
4+ image : netboxcommunity/netbox:v4.4.2 -3.4.1 -diode-netbox-plugin
55 build :
66 context : .
77 dockerfile : Dockerfile-diode-netbox-plugin
Original file line number Diff line number Diff line change @@ -41,9 +41,19 @@ def get_absolute_url(self):
4141 return reverse ("plugins:netbox_diode_plugin:settings" )
4242
4343
44+ class UnmanagedModelManager (models .Manager ):
45+ """Manager for unmanaged models that prevents database queries."""
46+
47+ def get_queryset (self ):
48+ """Return an empty queryset without hitting the database."""
49+ return super ().get_queryset ().none ()
50+
51+
4452class ClientCredentials (models .Model ):
4553 """Dummy model to allow for permissions, saved filters, etc.."""
4654
55+ objects = UnmanagedModelManager ()
56+
4757 class Meta :
4858 """Meta class."""
4959
You can’t perform that action at this time.
0 commit comments