We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fe2e66 commit a8a7381Copy full SHA for a8a7381
netbox_custom_objects/models.py
@@ -590,7 +590,7 @@ def wrapped_post_through_setup(self, cls):
590
TM.post_through_setup = original_post_through_setup
591
592
# Register the main model with Django's app registry
593
- if model_name in app_models:
+ if model_name in apps.all_models[APP_LABEL]:
594
# Remove the existing model from all_models before registering the new one
595
del apps.all_models[APP_LABEL][model_name]
596
0 commit comments