package documentation

Creates permissions for all installed apps that need permissions.
Package commands No package docstring; 1/2 module documented

From __init__.py:

Function ​_get​_all​_permissions Return (codename, name) for all permissions in the given opts.
Function ​_get​_builtin​_permissions Return (codename, name) for all autogenerated permissions. By default, this is ('add', 'change', 'delete', 'view')
Function create​_permissions Undocumented
Function get​_default​_username Try to determine the current system user's username to use as a default.
Function get​_system​_username Return the current system user's username, or an empty string if the username could not be determined.
def _get_all_permissions(opts):
Return (codename, name) for all permissions in the given opts.
def _get_builtin_permissions(opts):
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):

Undocumented

def get_system_username():
Return the current system user's username, or an empty string if the username could not be determined.
def get_default_username(check_db=True, database=DEFAULT_DB_ALIAS):
Try to determine the current system user's username to use as a default.
Parameters
check​_dbIf True, requires that the username does not match an existing auth.User (otherwise returns an empty string).
databaseThe 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.