gis.geoip2.GeoIP2.country_code()

GeoIP2.country_code(query) Returns the country code corresponding to the query.

forms.SplitDateTimeField.input_date_formats

input_date_formats A list of formats used to attempt to convert a string to a valid datetime.date object. If no input_date_formats argument is provided, the default input formats for DateField are used.

core.files.uploadedfile.UploadedFile.size

UploadedFile.size The size, in bytes, of the uploaded file.

db.models.functions.Upper

class Upper(expression, **extra) [source] Accepts a single text field or expression and returns the uppercase representation. It can also be registered as a transform as described in Length. Usage example: >>> from django.db.models.functions import Upper >>> Author.objects.create(name='Margaret Smith') >>> author = Author.objects.annotate(name_upper=Upper('name')).get() >>> print(author.name_upper) MARGARET SMITH Changed in Django 1.9: The ability to reg

core.management.BaseCommand.help

BaseCommand.help A short description of the command, which will be printed in the help message when the user runs the command python manage.py help <command>.

gis.db.models.GeometryField.dim

GeometryField.dim This option may be used for customizing the coordinate dimension of the geometry field. By default, it is set to 2, for representing two-dimensional geometries. For spatial backends that support it, it may be set to 3 for three-dimensional support. Note At this time 3D support is limited to the PostGIS spatial backend.

forms.Form.required_css_class

Form.required_css_class It’s pretty common to style form rows and fields that are required or have errors. For example, you might want to present required form rows in bold and highlight errors in red. The Form class has a couple of hooks you can use to add class attributes to required rows or to rows with errors: simply set the Form.error_css_class and/or Form.required_css_class attributes: from django.forms import Form class ContactForm(Form): error_css_class = 'error' required_cs

auth.models.Permission.codename

codename Required. 100 characters or fewer. Example: 'can_vote'.

gis.geos.GEOSGeometry.hasz

GEOSGeometry.hasz Returns a boolean indicating whether the geometry is three-dimensional.

forms.BoundField.as_widget()

BoundField.as_widget(widget=None, attrs=None, only_initial=False) [source] Renders the field by rendering the passed widget, adding any HTML attributes passed as attrs. If no widget is specified, then the field’s default widget will be used. only_initial is used by Django internals and should not be set explicitly.