ansible / django-ansible-base

Apache License 2.0
12 stars 43 forks source link

[DAB RBAC] Throw an error is a proxy model is registered #553

Open AlanCoding opened 1 month ago

AlanCoding commented 1 month ago

If someone does:

permission_registry.register(ProxyInventory)

(using test_app models, so all variables here are fully-defined)

This issues proposes that an error is thrown. This is because the resource_registry precedent is to use concrete models in its registry. Better to not allow proxy models in to begin with.