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.

admin.AdminSite.login_template

AdminSite.login_template Path to a custom template that will be used by the admin site login view.

middleware.common.CommonMiddleware.response_redirect_class

CommonMiddleware.response_redirect_class Defaults to HttpResponsePermanentRedirect. Subclass CommonMiddleware and override the attribute to customize the redirects issued by the middleware.

db.models.Func.function

function A class attribute describing the function that will be generated. Specifically, the function will be interpolated as the function placeholder within template. Defaults to None.

views.decorators.cache.cache_control()

cache_control(**kwargs) [source] This decorator patches the response’s Cache-Control header by adding all of the keyword arguments to it. See patch_cache_control() for the details of the transformation.

db.models.Aggregate.function

function A class attribute describing the aggregate function that will be generated. Specifically, the function will be interpolated as the function placeholder within template. Defaults to None.

db.models.query.QuerySet.select_for_update()

select_for_update(nowait=False) Returns a queryset that will lock rows until the end of the transaction, generating a SELECT ... FOR UPDATE SQL statement on supported databases. For example: entries = Entry.objects.select_for_update().filter(author=request.user) All matched entries will be locked until the end of the transaction block, meaning that other transactions will be prevented from changing or acquiring locks on them. Usually, if another transaction has already acquired a lock on on

forms.CheckboxInput

class CheckboxInput [source] Checkbox: <input type='checkbox' ...> Takes one optional argument: check_test A callable that takes the value of the CheckboxInput and returns True if the checkbox should be checked for that value.