postgres.forms.RangeWidget.decompress()

decompress(value) Takes a single “compressed” value of a field, for example a DateRangeField, and returns a tuple representing and lower and upper bound.

utils.http.urlquote_plus()

urlquote_plus(url, safe='') [source] A version of Python’s urllib.quote_plus() function that can operate on unicode strings. The url is first UTF-8 encoded before quoting. The returned string can safely be used as part of an argument to a subsequent iri_to_uri() call without double-quoting occurring. Employs lazy execution.

gis.widgets.BaseGeometryWidget

class BaseGeometryWidget This is an abstract base widget containing the logic needed by subclasses. You cannot directly use this widget for a geometry field. Note that the rendering of GeoDjango widgets is based on a template, identified by the template_name class attribute. OpenLayersWidget

utils.html.conditional_escape()

conditional_escape(text) [source] Similar to escape(), except that it doesn’t operate on pre-escaped strings, so it will not double escape.

utils.dateparse.parse_datetime()

parse_datetime(value) [source] Parses a string and returns a datetime.datetime. UTC offsets are supported; if value describes one, the result’s tzinfo attribute is a FixedOffset instance.

db.models.Expression.convert_value()

convert_value(self, value, expression, connection, context) A hook allowing the expression to coerce value into a more appropriate type.

db.models.functions.Concat

class Concat(*expressions, **extra) [source] Accepts a list of at least two text fields or expressions and returns the concatenated text. Each argument must be of a text or char type. If you want to concatenate a TextField() with a CharField(), then be sure to tell Django that the output_field should be a TextField(). This is also required when concatenating a Value as in the example below. This function will never have a null result. On backends where a null argument results in the entire e

gis.db.models.GeometryField.geography

GeometryField.geography If set to True, this option will create a database column of type geography, rather than geometry. Please refer to the geography type section below for more details. Note Geography support is limited to PostGIS and will force the SRID to be 4326.

db.models.Options.unique_together

Options.unique_together Sets of field names that, taken together, must be unique: unique_together = (("driver", "restaurant"),) This is a tuple of tuples that must be unique when considered together. It’s used in the Django admin and is enforced at the database level (i.e., the appropriate UNIQUE statements are included in the CREATE TABLE statement). For convenience, unique_together can be a single tuple when dealing with a single set of fields: unique_together = ("driver", "restaurant")

db.models.as_sql()

as_sql(self, compiler, connection) Responsible for producing the query string and parameters for the expression. The compiler is an SQLCompiler object, which has a compile() method that can be used to compile other expressions. The connection is the connection used to execute the query. Calling expression.as_sql() is usually incorrect - instead compiler.compile(expression) should be used. The compiler.compile() method will take care of calling vendor-specific methods of the expression. Custo