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.

Form and field validation

Form validation happens when the data is cleaned. If you want to customize this process, there are various places to make changes, each one serving a different purpose. Three types of cleaning methods are run during form processing. These are normally executed when you call the is_valid() method on a form. There are other things that can also trigger cleaning and validation (accessing the errors attribute or calling full_clean() directly), but normally they won’t be needed. In general, any clea

gis.gdal.SpatialReference.from_esri()

from_esri() Morphs this SpatialReference from ESRI’s format to EPSG

gis.geoip.GeoIP.country_name_by_name()

GeoIP.country_name_by_name(query)

gis.widgets.BaseGeometryWidget.template_name

BaseGeometryWidget.template_name The template used to render the map widget. You can pass widget attributes in the same manner that for any other Django widget. For example: from django.contrib.gis import forms class MyGeoForm(forms.Form): point = forms.PointField(widget= forms.OSMWidget(attrs={'map_width': 800, 'map_height': 500}))

gis.gdal.SpatialReference.proj4

proj4 Alias for SpatialReference.proj.

gis.db.models.GeoQuerySet.num_geom()

GeoQuerySet.num_geom(**kwargs) Deprecated since version 1.9: Use the NumGeometries function instead. Availability: PostGIS, Oracle, SpatiaLite Returns the number of geometries in a num_geom attribute on each element of the GeoQuerySet if the geometry field is a collection (e.g., a GEOMETRYCOLLECTION or MULTI* field); otherwise sets with None.