#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.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018d87c63ff1-e60f600d-c9ce-4253-99c1-78ff2a86ec8a-000000%40eu-central-1.amazonses.com.

Reply via email to