Skip to content
Snippets Groups Projects
Commit d7f2ee56 authored by Hangzhi Yu's avatar Hangzhi Yu
Browse files

Apply 1 suggestion(s) to 1 file(s)

parent b9affcaa
No related branches found
No related tags found
1 merge request!453Resolve "Reinvestigate how to do global permissions"
Pipeline #5769 passed
......@@ -50,10 +50,8 @@ def check_app_models_base_class(
for app_config in filter(lambda c: c.name.startswith("aleksis."), app_configs):
for model in app_config.get_models():
if (
ExtensibleModel not in model.__mro__
and PureDjangoModel not in model.__mro__
and GlobalPermissionModel not in model.__mro__
if not (
set(model.__mro__) & set((ExtensibleModel, PureDjangoModel, GlobalPermissionModel))
):
results.append(
Warning(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment