contenttypes.fields.GenericForeignKey.for_concrete_model

for_concrete_model If False, the field will be able to reference proxy models. Default is True. This mirrors the for_concrete_model argument to get_for_model().

gis.db.models.functions.GeoHash

class GeoHash(expression, precision=None, **extra) Availability: PostGIS, SpatiaLite (≥ 4.0, LWGEOM) Accepts a single geographic field or expression and returns a GeoHash representation of the geometry. The precision keyword argument controls the number of characters in the result. Changed in Django 1.10: SpatiaLite support was added.

gis.gdal.LineString

class LineString x Returns a list of X coordinates in this line: >>> OGRGeometry('LINESTRING (1 2,3 4)').x [1.0, 3.0] y Returns a list of Y coordinates in this line: >>> OGRGeometry('LINESTRING (1 2,3 4)').y [2.0, 4.0] z Returns a list of Z coordinates in this line, or None if the line does not have Z coordinates: >>> OGRGeometry('LINESTRING (1 2 3,4 5 6)').z [3.0, 6.0]

admin.models.LogEntry.action_flag

LogEntry.action_flag The type of action logged: ADDITION, CHANGE, DELETION. For example, to get a list of all additions done through the admin: from django.contrib.admin.models import LogEntry, ADDITION LogEntry.objects.filter(action_flag=ADDITION)

auth.backends.ModelBackend.authenticate()

authenticate(username=None, password=None, **kwargs) Tries to authenticate username with password by calling User.check_password. If no username is provided, it tries to fetch a username from kwargs using the key CustomUser.USERNAME_FIELD. Returns an authenticated user or None.

gis.gdal.SpatialReference.ellipsoid

ellipsoid Returns a tuple of the ellipsoid parameters for this spatial reference: (semimajor axis, semiminor axis, and inverse flattening).

db.models.Options.get_latest_by

Options.get_latest_by The name of an orderable field in the model, typically a DateField, DateTimeField, or IntegerField. This specifies the default field to use in your model Manager’s latest() and earliest() methods. Example: get_latest_by = "order_date" See the latest() docs for more.

gis.gdal.Field.value

value Returns the value of this field. The Field class itself returns the value as a string, but each subclass returns the value in the most appropriate form: >>> city['Population'].value 102121

urls.ResolverMatch.namespaces

namespaces The list of individual namespace components in the full instance namespace for the URL pattern that matches the URL. i.e., if the namespace is foo:bar, then namespaces will be ['foo', 'bar'].

gis.gdal.OGRGeometry.sym_difference()

sym_difference() Returns the region consisting of the symmetric difference of this geometry and the other, as a new OGRGeometry object.