sessions.backends.base.SessionBase.items()

items()

gis.db.models.MultiLineStringField

class MultiLineStringField

db.models.fields.related.RelatedManager

class RelatedManager A “related manager” is a manager used in a one-to-many or many-to-many related context. This happens in two cases: The “other side” of a ForeignKey relation. That is: from django.db import models class Reporter(models.Model): # ... pass class Article(models.Model): reporter = models.ForeignKey(Reporter, on_delete=models.CASCADE) In the above example, the methods below will be available on the manager reporter.article_set. Both sides of a ManyToManyField

postgres.fields.RangeField.form_field

form_field The form field class to use. Should be a subclass of django.contrib.postgres.forms.BaseRangeField.

gis.forms.MultiPointField

class MultiPointField

gis.gdal.DataSource.name

name Returns the name of the data source.

db.models.Max

class Max(expression, output_field=None, **extra) [source] Returns the maximum value of the given expression. Default alias: <field>__max Return type: same as input field, or output_field if supplied

gis.db.models.MakeLine

class MakeLine(geo_field) Availability: PostGIS, SpatiaLite Returns a LineString constructed from the point field geometries in the QuerySet. Currently, ordering the queryset has no effect. Changed in Django 1.10: SpatiaLite support was added. Example: >>> qs = City.objects.filter(name__in=('Houston', 'Dallas')).aggregate(MakeLine('poly')) >>> print(qs['poly__makeline']) LINESTRING (-95.3631510000000020 29.7633739999999989, -96.8016109999999941 32.7820570000000018)

db.transaction.clean_savepoints()

clean_savepoints(using=None) [source] Resets the counter used to generate unique savepoint IDs. The following example demonstrates the use of savepoints: from django.db import transaction # open a transaction @transaction.atomic def viewfunc(request): a.save() # transaction now contains a.save() sid = transaction.savepoint() b.save() # transaction now contains a.save() and b.save() if want_to_keep_b: transaction.savepoint_commit(sid) # open transa

utils.html.html_safe()

html_safe() [source] The __html__() method on a class helps non-Django templates detect classes whose output doesn’t require HTML escaping. This decorator defines the __html__() method on the decorated class by wrapping the __unicode__() (Python 2) or __str__() (Python 3) in mark_safe(). Ensure the __unicode__() or __str__() method does indeed return text that doesn’t require HTML escaping.