gis.geos.GEOSGeometry.centroid

GEOSGeometry.centroid Returns a Point object representing the geometric center of the geometry. The point is not guaranteed to be on the interior of the geometry.

forms.ModelMultipleChoiceField.queryset

queryset Same as ModelChoiceField.queryset. Takes one optional argument:

db.models.functions.datetime.ExtractMinute

class ExtractMinute(expression, tzinfo=None, **extra) [source] lookup_name = 'minute'

gis.gdal.Layer.get_fields()

get_fields() A method that returns a list of the values of a given field for each feature in the layer: >>> layer.get_fields('Name') ['Pueblo', 'Lawrence', 'Houston']

forms.MultipleChoiceField

class MultipleChoiceField(**kwargs) [source] Default widget: SelectMultiple Empty value: [] (an empty list) Normalizes to: A list of Unicode objects. Validates that every value in the given list of values exists in the list of choices. Error message keys: required, invalid_choice, invalid_list The invalid_choice error message may contain %(value)s, which will be replaced with the selected choice. Takes one extra required argument, choices, as for ChoiceField.

admin.AdminSite.disable_action()

AdminSite.disable_action(name) [source] If you need to disable a site-wide action you can call AdminSite.disable_action(). For example, you can use this method to remove the built-in “delete selected objects” action: admin.site.disable_action('delete_selected') Once you’ve done the above, that action will no longer be available site-wide. If, however, you need to re-enable a globally-disabled action for one particular model, simply list it explicitly in your ModelAdmin.actions list: # Globa

views.generic.edit.FormMixin.get_form_class()

get_form_class() Retrieve the form class to instantiate. By default form_class.

core.files.storage.Storage.path()

path(name) [source] The local filesystem path where the file can be opened using Python’s standard open(). For storage systems that aren’t accessible from the local filesystem, this will raise NotImplementedError instead.

db.models.Options.required_db_features

Options.required_db_features New in Django 1.9. List of database features that the current connection should have so that the model is considered during the migration phase. For example, if you set this list to ['gis_enabled'], the model will only be synchronized on GIS-enabled databases. It’s also useful to skip some models when testing with several database backends. Avoid relations between models that may or may not be created as the ORM doesn’t handle this.

utils.translation.ugettext_lazy()

ugettext_lazy(message)