﻿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
30527	Problem with creating migrations for subclassed field changes.	Wolfgang Fehr	nobody	"`makemigrations` gives out 'No changes detected' for changes on a sub-subclass of CharField (only tested with this field).

When creating a field as seen below (DummyCharField), a new migration only gets created if `kwargs['max_length'] = 255` is wrapped inside an `if`.

{{{#!python
class BaseDummyCharField(models.CharField):
    def __init__(self, *args, **kwargs):
        if 'max_length' not in kwargs:
            kwargs['max_length'] = 64
        super().__init__(*args, **kwargs)


class DummyCharField(BaseDummyCharField):
    def __init__(self, *args, **kwargs):
        # Without the if 'makemigrations' does not recognize changes.
        # Previous max_length (in initial migration) is 64.
        if 'max_length' not in kwargs:
            kwargs['max_length'] = 255
        super().__init__(*args, **kwargs)


class DummyModel(models.Model):
    dummy = DummyCharField()
}}}

(Also reproducable in version 2.0.6, maybe others as well.)"	Bug	closed	Migrations	dev	Normal	invalid			Unreviewed	0	0	0	0	0	0
