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. |
Undocumented
Parameters | |
check_db | If True, requires that the username does not match an existing auth.User (otherwise returns an empty string). |
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. |