postgres.fields.RangeField.form_field

form_field The form field class to use. Should be a subclass of django.contrib.postgres.forms.BaseRangeField.

postgres.fields.RangeField.base_field

base_field The model field class to use.

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.

postgres.fields.JSONField

class JSONField(**options) [source] A field for storing JSON encoded data. In Python the data is represented in its Python native format: dictionaries, lists, strings, numbers, booleans and None. If you want to store other data types, you’ll need to serialize them first. For example, you might cast a datetime to a string. You might also want to convert the string back to a datetime when you retrieve the data from the database. There are some third-party JSONField implementations which do thi

postgres.fields.IntegerRangeField

class IntegerRangeField(**options) [source] Stores a range of integers. Based on an IntegerField. Represented by an int4range in the database and a NumericRange in Python. Regardless of the bounds specified when saving the data, PostgreSQL always returns a range in a canonical form that includes the lower bound and excludes the upper bound; that is [).

postgres.fields.HStoreField

class HStoreField(**options) [source] A field for storing mappings of strings to strings. The Python data type used is a dict. To use this field, you’ll need to: Add 'django.contrib.postgres' in your INSTALLED_APPS. Setup the hstore extension in PostgreSQL before the first CreateModel or AddField operation by adding a migration with the HStoreExtension operation. For example: from django.contrib.postgres.operations import HStoreExtension class Migration(migrations.Migration): ...

postgres.fields.FloatRangeField

class FloatRangeField(**options) [source] Stores a range of floating point values. Based on a FloatField. Represented by a numrange in the database and a NumericRange in Python.

postgres.fields.django.postgres.forms.BaseRangeField.range_type

range_type The psycopg2 range type to use.

postgres.fields.django.postgres.forms.BaseRangeField.base_field

base_field The form field to use.

postgres.fields.django.postgres.forms.BaseRangeField

class django.contrib.postgres.forms.BaseRangeField Base class for form range fields. base_field The form field to use. range_type The psycopg2 range type to use.