package documentation
Creates permissions for all installed apps that need permissions.
Package | commands |
No package docstring; 1/2 module documented |
From __init__.py
:
Function | create |
Undocumented |
Function | get |
Try to determine the current system user's username to use as a default. |
Function | get |
Return the current system user's username, or an empty string if the username could not be determined. |
Function | _get |
Return (codename, name) for all permissions in the given opts. |
Function | _get |
Return (codename, name) for all autogenerated permissions. By default, this is ('add', 'change', 'delete', 'view') |
Return (codename, name) for all autogenerated permissions. By default, this is ('add', 'change', 'delete', 'view')
def create_permissions(app_config, verbosity=2, interactive=True, using=DEFAULT_DB_ALIAS, apps=global_apps, **kwargs):
(source)
¶
Undocumented
Return the current system user's username, or an empty string if the username could not be determined.
Try to determine the current system user's username to use as a default. :param check_db: If ``True``, requires that the username does not match an existing ``auth.User`` (otherwise returns an empty string). :param database: The database where the unique check will be performed. :returns: The username, or an empty string if no username can be determined or the suggested username is already taken.