test.SimpleTestCase.assertXMLNotEqual()

SimpleTestCase.assertXMLNotEqual(xml1, xml2, msg=None) [source] Asserts that the strings xml1 and xml2 are not equal. The comparison is based on XML semantics. See assertXMLEqual() for details. Output in case of error can be customized with the msg argument.

forms.CheckboxInput.check_test

check_test A callable that takes the value of the CheckboxInput and returns True if the checkbox should be checked for that value.

auth.models.User.is_superuser

is_superuser Boolean. Designates that this user has all permissions without explicitly assigning them.

core.files.File.open()

open(mode=None) [source] Open or reopen the file (which also does File.seek(0)). The mode argument allows the same values as Python’s built-in open(). When reopening a file, mode will override whatever mode the file was originally opened with; None means to reopen with the original mode.

auth.backends.ModelBackend.has_perm()

has_perm(user_obj, perm, obj=None) Uses get_all_permissions() to check if user_obj has the permission string perm. Returns False if the user is not is_active.

http.HttpResponse.streaming

HttpResponse.streaming This is always False. This attribute exists so middleware can treat streaming responses differently from regular responses.

auth.backends.RemoteUserBackend.authenticate()

RemoteUserBackend.authenticate(remote_user) The username passed as remote_user is considered trusted. This method simply returns the User object with the given username, creating a new User object if create_unknown_user is True. Returns None if create_unknown_user is False and a User object with the given username is not found in the database.

auth.models.User.get_username()

get_username() Returns the username for the user. Since the User model can be swapped out, you should use this method instead of referencing the username attribute directly.

gis.db.models.GeoQuerySet.mem_size()

GeoQuerySet.mem_size(**kwargs) Deprecated since version 1.9: Use the MemSize function instead. Availability: PostGIS Returns the memory size (number of bytes) that the geometry field takes in a mem_size attribute on each element of the GeoQuerySet.

auth.backends.ModelBackend.get_group_permissions()

get_group_permissions(user_obj, obj=None) Returns the set of permission strings the user_obj has from the permissions of the groups they belong. Returns an empty set if is_anonymous or is_active is False.