gis.gdal.Feature.layer_name

layer_name Returns the name of the Layer that the feature came from. This will be the same for all features in a given layer: >>> city.layer_name 'cities'

messages.storage.session.SessionStorage

class storage.session.SessionStorage This class stores all messages inside of the request’s session. Therefore it requires Django’s contrib.sessions application.

postgres.fields.DateTimeRangeField

class DateTimeRangeField(**options) [source] Stores a range of timestamps. Based on a DateTimeField. Represented by a tztsrange in the database and a DateTimeTZRange in Python.

contenttypes.models.ContentTypeManager

class ContentTypeManager ContentType also has a custom manager, ContentTypeManager, which adds the following methods: clear_cache() Clears an internal cache used by ContentType to keep track of models for which it has created ContentType instances. You probably won’t ever need to call this method yourself; Django will call it automatically when it’s needed. get_for_id(id) Lookup a ContentType by ID. Since this method uses the same shared cache as get_for_model(), it’s preferred to u

http.QueryDict.iterlists()

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

forms.Field.label_suffix

Field.label_suffix The label_suffix argument lets you override the form’s label_suffix on a per-field basis: >>> class ContactForm(forms.Form): ... age = forms.IntegerField() ... nationality = forms.CharField() ... captcha_answer = forms.IntegerField(label='2 + 2', label_suffix=' =') >>> f = ContactForm(label_suffix='?') >>> print(f.as_p()) <p><label for="id_age">Age?</label> <input id="id_age" name="age" type="number" required />

db.models.Count

class Count(expression, distinct=False, **extra) [source] Returns the number of objects that are related through the provided expression. Default alias: <field>__count Return type: int Has one optional argument: distinct If distinct=True, the count will only include unique instances. This is the SQL equivalent of COUNT(DISTINCT <field>). The default value is False.

gis.widgets.BaseGeometryWidget.geom_type

BaseGeometryWidget.geom_type The OpenGIS geometry type, generally set by the form field.

test.skipUnlessDBFeature()

skipUnlessDBFeature(*feature_name_strings) [source] Skip the decorated test or TestCase if any of the named database features are not supported. For example, the following test will only be executed if the database supports transactions (e.g., it would run under PostgreSQL, but not under MySQL with MyISAM tables): class MyTests(TestCase): @skipUnlessDBFeature('supports_transactions') def test_transaction_behavior(self): # ... conditional test code pass

sessions.backends.base.SessionBase.__setitem__()

__setitem__(key, value) Example: request.session['fav_color'] = 'blue'