Merge pull request #2805 from matmair/matmair/issue2385

Plugins for notifications
This commit is contained in:
Oliver authored and GitHub committed 2022-05-06 20:00:56 +10:00
commit 9e1d8e52f3
22 files changed
+620 -124

No files matched your search

+4 -1
View File
@@ -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: # pragma: no cover
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