gis.geoip.GeoIP.country_code_by_name()

GeoIP.country_code_by_name(query)

db.models.query.QuerySet.select_related()

select_related(*fields) Returns a QuerySet that will “follow” foreign-key relationships, selecting additional related-object data when it executes its query. This is a performance booster which results in a single more complex query but means later use of foreign-key relationships won’t require database queries. The following examples illustrate the difference between plain lookups and select_related() lookups. Here’s standard lookup: # Hits the database. e = Entry.objects.get(id=5) # Hits

gis.gdal.Feature.fields

fields Returns a list of the names of the fields of data associated with the feature. This will be the same for all features in a given layer and is equivalent to the Layer.fields property of the Layer object the feature came from.

db.models.BigIntegerField

class BigIntegerField(**options) [source] A 64-bit integer, much like an IntegerField except that it is guaranteed to fit numbers from -9223372036854775808 to 9223372036854775807. The default form widget for this field is a TextInput.

db.models.Model.get_deferred_fields()

Model.get_deferred_fields() [source] A helper method that returns a set containing the attribute names of all those fields that are currently deferred for this model.

db.transaction.commit()

commit(using=None) [source]

gis.geoip.GeoIP.info

GeoIP.info This property returns information about all GeoIP databases (both city and country), and the version of the GeoIP C library (if supported).

apps.apps.get_app_configs()

apps.get_app_configs() Returns an iterable of AppConfig instances.

postgres.fields.RangeField

class RangeField(**options) [source] Base class for model range fields. base_field The model field class to use. range_type The psycopg2 range type to use. form_field The form field class to use. Should be a subclass of django.contrib.postgres.forms.BaseRangeField.

forms.Form.changed_data

Form.changed_data The changed_data attribute returns a list of the names of the fields whose values in the form’s bound data (usually request.POST) differ from what was provided in initial. It returns an empty list if no data differs. >>> f = ContactForm(request.POST, initial=data) >>> if f.has_changed(): ... print("The following fields changed: %s" % ", ".join(f.changed_data))