[2.0.x] Alphabetized imports in docs/ref/contrib/postgres/fields.txt.

Backport of 7d3fe36c62 from master
This commit is contained in:
Hasan Ramezani 2018-05-07 16:16:29 +04:30 committed by Tim Graham
parent 2b0da16d43
commit 840c0ed13d
1 changed files with 2 additions and 2 deletions

View File

@ -53,8 +53,8 @@ may be a good choice for the :ref:`range fields <range-fields>` and
It is possible to nest array fields - you can specify an instance of It is possible to nest array fields - you can specify an instance of
``ArrayField`` as the ``base_field``. For example:: ``ArrayField`` as the ``base_field``. For example::
from django.db import models
from django.contrib.postgres.fields import ArrayField from django.contrib.postgres.fields import ArrayField
from django.db import models
class ChessBoard(models.Model): class ChessBoard(models.Model):
board = ArrayField( board = ArrayField(
@ -109,8 +109,8 @@ Querying ``ArrayField``
There are a number of custom lookups and transforms for :class:`ArrayField`. There are a number of custom lookups and transforms for :class:`ArrayField`.
We will use the following example model:: We will use the following example model::
from django.db import models
from django.contrib.postgres.fields import ArrayField from django.contrib.postgres.fields import ArrayField
from django.db import models
class Post(models.Model): class Post(models.Model):
name = models.CharField(max_length=200) name = models.CharField(max_length=200)