postgres.forms.SplitArrayField.base_field

base_field This is a required argument. It specifies the form field to be repeated.

postgres.forms.SplitArrayField.remove_trailing_nulls

remove_trailing_nulls By default, this is set to False. When False, each value from the repeated fields is stored. When set to True, any trailing values which are blank will be stripped from the result. If the underlying field has required=True, but remove_trailing_nulls is True, then null values are only allowed at the end, and will be stripped. Some examples: SplitArrayField(IntegerField(required=True), size=3, remove_trailing_nulls=False) ['1', '2', '3'] # -> [1, 2, 3] ['1', '2', '']

postgres.forms.SplitArrayField.size

size This is the fixed number of times the underlying field will be used.

postgres.functions.TransactionNow

class TransactionNow [source] New in Django 1.9. Returns the date and time on the database server that the current transaction started. If you are not in a transaction it will return the date and time of the current statement. This is a complement to django.db.models.functions.Now, which returns the date and time of the current statement. Note that only the outermost call to atomic() sets up a transaction and thus sets the time that TransactionNow() will return; nested calls create savepoi

postgres.operations.CreateExtension

class CreateExtension(name) [source] An Operation subclass which installs PostgreSQL extensions. name This is a required argument. The name of the extension to be installed.

postgres.operations.CreateExtension.name

name This is a required argument. The name of the extension to be installed.

postgres.operations.HStoreExtension

class HStoreExtension [source] Installs the hstore extension and also sets up the connection to interpret hstore data for possible use in subsequent migrations.

postgres.operations.TrigramExtension

class TrigramExtension [source] New in Django 1.10. Installs the pg_trgm extension.

postgres.operations.UnaccentExtension

class UnaccentExtension [source] Installs the unaccent extension.

postgres.search.SearchQuery

class SearchQuery(value, config=None) [source] SearchQuery translates the terms the user provides into a search query object that the database compares to a search vector. By default, all the words the user provides are passed through the stemming algorithms, and then it looks for matches for all of the resulting terms. SearchQuery terms can be combined logically to provide more flexibility: >>> from django.contrib.postgres.search import SearchQuery >>> SearchQuery('potato'