diff --git a/InvenTree/plugin/registry.py b/InvenTree/plugin/registry.py index 304932f6f8..1f50233976 100644 --- a/InvenTree/plugin/registry.py +++ b/InvenTree/plugin/registry.py @@ -523,7 +523,10 @@ class PluginsRegistry: # check all models for model in app_config.get_models(): # remove model from admin site - admin.site.unregister(model) + try: + admin.site.unregister(model) + except: + pass models += [model._meta.model_name] except LookupError: # pragma: no cover # if an error occurs the app was never loaded right -> so nothing to do anymore