mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
[4.2.x] Fixed #34140 -- Reformatted code blocks in docs with blacken-docs.
This commit is contained in:
committed by
Mariusz Felisiak
parent
32f224e359
commit
62510f01e7
@@ -22,13 +22,11 @@ For example::
|
||||
|
||||
from django.contrib.postgres.operations import HStoreExtension
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
...
|
||||
|
||||
operations = [
|
||||
HStoreExtension(),
|
||||
...
|
||||
]
|
||||
operations = [HStoreExtension(), ...]
|
||||
|
||||
The operation skips adding the extension if it already exists.
|
||||
|
||||
@@ -124,16 +122,17 @@ For example, to create a collation for German phone book ordering::
|
||||
|
||||
from django.contrib.postgres.operations import CreateCollation
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
...
|
||||
|
||||
operations = [
|
||||
CreateCollation(
|
||||
'german_phonebook',
|
||||
provider='icu',
|
||||
locale='und-u-ks-level2',
|
||||
"german_phonebook",
|
||||
provider="icu",
|
||||
locale="und-u-ks-level2",
|
||||
),
|
||||
...
|
||||
...,
|
||||
]
|
||||
|
||||
.. class:: CreateCollation(name, locale, *, provider='libc', deterministic=True)
|
||||
|
||||
Reference in New Issue
Block a user