Management commands

Conjunto adds management commands for your convenience:

update_permissions

conjunto.management.commands.update_permissions

conjunto.management.commands.update_permissions.Command

Bases: Command

Reload permissions of all (given) apps.

Checks all (given) apps for a group_permissions attribute and creates Group permissions using that schema.

# apps.py
import ...

class MyPackageCppConfig(AppConfig):
    group_permissions: {
        "Authors": { my_package.MyContentTypeModel: ["view", "change"],
        # on my special site, admins may not change content, just add/delete it!
        "Site admins": { "my_package.MyContentTypeModel": ["view", "add", "delete"],
    }