[Django] #35175: Migration Operation CreateCollation kwargs is truncated when used with makemigrations --update

5 views
Skip to first unread message

Django

unread,
Feb 8, 2024, 3:12:18 AMFeb 8
to django-...@googlegroups.com
#35175: Migration Operation CreateCollation kwargs is truncated when used with
makemigrations --update
--------------------------------------+------------------------
Reporter: voiddragon | Owner: nobody
Type: Bug | Status: new
Component: Migrations | Version: 5.0
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
--------------------------------------+------------------------
For this case I have created an initial migration where a collation is the
only operation
I wish to merge my initial user model creation with the collation creation
so this is done at the same time.

Input (from 0001_collation.py)
{{{
django.contrib.postgres.operations.CreateCollation(
name='case_insensitive',
provider='icu',
locale='und-u-ks-level2',
deterministic=False,
),
}}}

Expected Output (0001_initial.py)
{{{
django.contrib.postgres.operations.CreateCollation(
name='case_insensitive',
provider='icu',
locale='und-u-ks-level2',
deterministic=False,
),
}}}

Actual Output (0001_initial.py)

{{{
django.contrib.postgres.operations.CreateCollation(
name='case_insensitive',
locale='und-u-ks-level2',
),
}}}

Possibly caused by

django/contrib/postgres/operations.py:169
{{{
def __init__(self, name, locale, *, provider="libc",
deterministic=True):
}}}

With "provider" and "deterministic" being keyword arguments only.
--
Ticket URL: <https://code.djangoproject.com/ticket/35175>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Feb 8, 2024, 3:13:39 AMFeb 8
to django-...@googlegroups.com
#35175: Migration Operation CreateCollation kwargs is truncated when used with
makemigrations --update
----------------------------+--------------------------------------
Reporter: Gerald Goh | Owner: nobody

Type: Bug | Status: new
Component: Migrations | Version: 5.0
Severity: Normal | Resolution:

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------+--------------------------------------
Changes (by Gerald Goh):

* cc: Gerald Goh (added)

--
Ticket URL: <https://code.djangoproject.com/ticket/35175#comment:1>

Django

unread,
Feb 8, 2024, 3:19:09 AMFeb 8
to django-...@googlegroups.com
#35175: Migration Operation CreateCollation kwargs is truncated when used with
makemigrations --update
----------------------------+--------------------------------------
Reporter: Gerald Goh | Owner: nobody
Type: Bug | Status: new
Component: Migrations | Version: 4.2

Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------+--------------------------------------
Changes (by Gerald Goh):

* version: 5.0 => 4.2

--
Ticket URL: <https://code.djangoproject.com/ticket/35175#comment:2>

Reply all
Reply to author
Forward
0 new messages