postgres.aggregates.RegrSXY

class RegrSXY(y, x) [source] Returns sum(x*y) - sum(x) * sum(y)/N (“sum of products” of independent times dependent variable) as a float, or None if there aren’t any matching rows.

db.models.TimeField

class TimeField(auto_now=False, auto_now_add=False, **options) [source] A time, represented in Python by a datetime.time instance. Accepts the same auto-population options as DateField. The default form widget for this field is a TextInput. The admin adds some JavaScript shortcuts.

template.Context.push()

Context.push()

admin.ModelAdmin.add_view()

ModelAdmin.add_view(request, form_url='', extra_context=None) [source] Django view for the model instance addition page. See note below.

admin.ModelAdmin.get_prepopulated_fields()

ModelAdmin.get_prepopulated_fields(request, obj=None) The get_prepopulated_fields method is given the HttpRequest and the obj being edited (or None on an add form) and is expected to return a dictionary, as described above in the ModelAdmin.prepopulated_fields section.

gis.db.models.functions.Centroid

class Centroid(expression, **extra) Availability: MySQL, PostGIS, Oracle, SpatiaLite Accepts a single geographic field or expression and returns the centroid value of the geometry.

gis.geos.GEOSGeometry.empty

GEOSGeometry.empty Returns whether or not the set of points in the geometry is empty.

forms.TypedChoiceField.empty_value

empty_value The value to use to represent “empty.” Defaults to the empty string; None is another common choice here. Note that this value will not be coerced by the function given in the coerce argument, so choose it accordingly.

db.models.Func.arg_joiner

arg_joiner A class attribute that denotes the character used to join the list of expressions together. Defaults to ', '.

core.paginator.Page.number

Page.number The 1-based page number for this page.