gis.feeds.Feed

class Feed [source] In addition to methods provided by the django.contrib.syndication.views.Feed base class, GeoDjango’s Feed class provides the following overrides. Note that these overrides may be done in multiple ways: from django.contrib.gis.feeds import Feed class MyFeed(Feed): # First, as a class attribute. geometry = ... item_geometry = ... # Also a function with no arguments def geometry(self): ... def item_geometry(self): ... # And as

db.models.Field.description

description A verbose description of the field, e.g. for the django.contrib.admindocs application. The description can be of the form: description = _("String (up to %(max_length)s)") where the arguments are interpolated from the field’s __dict__. To map a Field to a database-specific type, Django exposes several methods:

postgres.aggregates.BoolAnd

class BoolAnd(expression, **extra) [source] Returns True, if all input values are true, None if all values are null or if there are no values, otherwise False .

views.generic.detail.SingleObjectMixin

class django.views.generic.detail.SingleObjectMixin Provides a mechanism for looking up an object associated with the current HTTP request. Methods and Attributes model The model that this view will display data for. Specifying model = Foo is effectively the same as specifying queryset = Foo.objects.all(), where objects stands for Foo’s default manager. queryset A QuerySet that represents the objects. If provided, the value of queryset supersedes the value provided for model. Warni

gis.geos.GEOSGeometry.buffer()

GEOSGeometry.buffer(width, quadsegs=8) Returns a GEOSGeometry that represents all points whose distance from this geometry is less than or equal to the given width. The optional quadsegs keyword sets the number of segments used to approximate a quarter circle (defaults is 8).

views.generic.list.MultipleObjectMixin.get_ordering()

get_ordering() Returns a string (or iterable of strings) that defines the ordering that will be applied to the queryset. Returns ordering by default.

auth.models.UserManager.create_superuser()

create_superuser(username, email, password, **extra_fields) Same as create_user(), but sets is_staff and is_superuser to True.

views.generic.dates.MonthMixin.get_next_month()

get_next_month(date) [source] Returns a date object containing the first day of the month after the date provided. This function can also return None or raise an Http404 exception, depending on the values of allow_empty and allow_future.

db.models.PositiveSmallIntegerField

class PositiveSmallIntegerField(**options) [source] Like a PositiveIntegerField, but only allows values under a certain (database-dependent) point. Values from 0 to 32767 are safe in all databases supported by Django.

postgres.forms.SplitArrayField.remove_trailing_nulls

remove_trailing_nulls By default, this is set to False. When False, each value from the repeated fields is stored. When set to True, any trailing values which are blank will be stripped from the result. If the underlying field has required=True, but remove_trailing_nulls is True, then null values are only allowed at the end, and will be stripped. Some examples: SplitArrayField(IntegerField(required=True), size=3, remove_trailing_nulls=False) ['1', '2', '3'] # -> [1, 2, 3] ['1', '2', '']