def _update_db(resources):
    content_type_id = _ensure_content_type()
    _populate_permissions(resources, content_type_id)
Add the content type and all permissions if they are missing.
dataset/ETHPy150Open wuher/devil/devil/perm/management.py/_update_db