﻿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
22373	Django Migrations keeps detecting changes to FileField using custom storage	Matthias Pronk <django@…>		"I've a FileField that uses a custom storage backend, which is a subclass of FileSystemStorage. After adding a deconstruct function to my custom storage backend, Django's migration framework keeps detecting that the FileField has changed ad infinitum.

{{{
from django.core.files.storage import FileSystemStorage

class MediaStorage(FileSystemStorage):
    def deconstruct(self):
        return ('foo.media.storage.MediaStorage', [], {})
}}}

The migration file shows:
{{{
        migrations.AlterField(
            model_name='file',
            name='file',
            field=models.FileField(storage=foo.media.storage.MediaStorage(), upload_to='foo_media/', max_length=255, verbose_name=u'file'),
        ),
}}}

Note: This bug is related to #22337, but not the same.
"	Bug	closed	Migrations	dev	Release blocker	duplicate			Accepted	0	0	0	0	0	0
