1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

[4.2.x] Fixed #34140 -- Reformatted code blocks in docs with blacken-docs.

This commit is contained in:
django-bot
2023-03-01 13:35:43 +01:00
committed by Mariusz Felisiak
parent 32f224e359
commit 62510f01e7
193 changed files with 5798 additions and 4482 deletions

View File

@@ -153,16 +153,16 @@ available from the ``django.contrib.postgres.indexes`` module.
For example::
Index(
OpClass(Lower('username'), name='varchar_pattern_ops'),
name='lower_username_idx',
OpClass(Lower("username"), name="varchar_pattern_ops"),
name="lower_username_idx",
)
creates an index on ``Lower('username')`` using ``varchar_pattern_ops``.
::
UniqueConstraint(
OpClass(Upper('description'), name='text_pattern_ops'),
name='upper_description_unique',
OpClass(Upper("description"), name="text_pattern_ops"),
name="upper_description_unique",
)
creates a unique constraint on ``Upper('description')`` using
@@ -170,9 +170,9 @@ available from the ``django.contrib.postgres.indexes`` module.
::
ExclusionConstraint(
name='exclude_overlapping_ops',
name="exclude_overlapping_ops",
expressions=[
(OpClass('circle', name='circle_ops'), RangeOperators.OVERLAPS),
(OpClass("circle", name="circle_ops"), RangeOperators.OVERLAPS),
],
)