﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
35175	Migration Operation CreateCollation kwargs are truncated when used with makemigrations --update	Gerald Goh	David Sanders	"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.




"	Bug	closed	Migrations	4.2	Normal	fixed		Gerald Goh	Ready for checkin	1	0	0	0	0	0
