db.models.Field.hidden

Field.hidden Boolean flag that indicates if a field is used to back another non-hidden field’s functionality (e.g. the content_type and object_id fields that make up a GenericForeignKey). The hidden flag is used to distinguish what constitutes the public subset of fields on the model from all the fields on the model. Note Options.get_fields() excludes hidden fields by default. Pass in include_hidden=True to return hidden fields in the results.

gis.gdal.OGRGeometry.touches()

touches(other) Returns True if this geometry touches the other, otherwise returns False.

db.models.query.QuerySet.count()

count() Returns an integer representing the number of objects in the database matching the QuerySet. The count() method never raises exceptions. Example: # Returns the total number of entries in the database. Entry.objects.count() # Returns the number of entries whose headline contains 'Lennon' Entry.objects.filter(headline__contains='Lennon').count() A count() call performs a SELECT COUNT(*) behind the scenes, so you should always use count() rather than loading all of the record into Pyt

forms.ImageField

class ImageField(**kwargs) [source] Default widget: ClearableFileInput Empty value: None Normalizes to: An UploadedFile object that wraps the file content and file name into a single object. Validates that file data has been bound to the form, and that the file is of an image format understood by Pillow. Error message keys: required, invalid, missing, empty, invalid_image Using an ImageField requires that Pillow is installed with support for the image formats you use. If you encounter a

views.generic.edit.FormMixin

class django.views.generic.edit.FormMixin A mixin class that provides facilities for creating and displaying forms. Mixins django.views.generic.base.ContextMixin Methods and Attributes initial A dictionary containing initial data for the form. form_class The form class to instantiate. success_url The URL to redirect to when the form is successfully processed. prefix The prefix for the generated form. get_initial() Retrieve initial data for the form. By default, r

views.generic.dates.BaseDateListView.get_date_list()

get_date_list(queryset, date_type=None, ordering='ASC') [source] Returns the list of dates of type date_type for which queryset contains entries. For example, get_date_list(qs, 'year') will return the list of years for which qs has entries. If date_type isn’t provided, the result of get_date_list_period() is used. date_type and ordering are simply passed to QuerySet.dates().

gis.db.models.GeoQuerySet.envelope()

GeoQuerySet.envelope(**kwargs) Deprecated since version 1.9: Use the Envelope function instead. Availability: PostGIS, SpatiaLite Returns a geometry representing the bounding box of the geometry field in an envelope attribute on each element of the GeoQuerySet.

utils.timezone.override()

override(timezone) [source] This is a Python context manager that sets the current time zone on entry with activate(), and restores the previously active time zone on exit. If the timezone argument is None, the current time zone is unset on entry with deactivate() instead. override is also usable as a function decorator.

http.QueryDict.iterlists()

QueryDict.iterlists() Like QueryDict.iteritems() except it includes all values, as a list, for each member of the dictionary.

gis.db.models.GeoQuerySet.geojson()

GeoQuerySet.geojson(**kwargs) Deprecated since version 1.9: Use the AsGeoJSON function instead. Availability: PostGIS, SpatiaLite Attaches a geojson attribute to every model in the queryset that contains the GeoJSON representation of the geometry. Keyword Argument Description precision It may be used to specify the number of significant digits for the coordinates in the GeoJSON representation – the default value is 8. crs Set this to True if you want the coordinate reference system to be i