auth.models.Permission.content_type

content_type Required. A reference to the django_content_type database table, which contains a record for each installed model.

Generic views

See Built-in class-based views API.

auth.models.PermissionsMixin.get_all_permissions()

get_all_permissions(obj=None) Returns a set of permission strings that the user has, both through group and user permissions. If obj is passed in, only returns the permissions for this specific object.

auth.middleware.AuthenticationMiddleware

class AuthenticationMiddleware Adds the user attribute, representing the currently-logged-in user, to every incoming HttpRequest object. See Authentication in Web requests.

core.files.storage._save()

_save(name, content) Called by Storage.save(). The name will already have gone through get_valid_name() and get_available_name(), and the content will be a File object itself. Should return the actual name of name of the file saved (usually the name passed in, but if the storage needs to change the file name return the new name instead).

postgres.operations.TrigramExtension

class TrigramExtension [source] New in Django 1.10. Installs the pg_trgm extension.

core.management.call_command()

django.core.management.call_command(name, *args, **options) To call a management command from code use call_command.

db.models.lookups.RegisterLookupMixin.get_lookup()

get_lookup(lookup_name) Returns the Lookup named lookup_name registered in the class. The default implementation looks recursively on all parent classes and checks if any has a registered lookup named lookup_name, returning the first match.

gis.geoip2.GeoIP2.lat_lon()

GeoIP2.lat_lon(query) Returns a coordinate tuple of (latitude, longitude),

forms.DecimalField.min_value

min_value These control the range of values permitted in the field, and should be given as decimal.Decimal values.