﻿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
24514	Unused import on some auto generated migrations	Hugo Tácito	Chris Luc	"Some auto generated migrations don't use '''django.db.models'''. Especially those that only change the Meta class. It would be nice to change the '''django.db.migrations.writer.MIGRATION_TEMPLATE''' to only add the '''from django.db import models''' if its really needed.

Example of auto generated migration with unused import:

{{{
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


class Migration(migrations.Migration):

    dependencies = [
        ('city', '0003_auto_20150305_0928'),
    ]

    operations = [
        migrations.AlterModelOptions(
            name='city',
            options={'verbose_name': 'City', 'verbose_name_plural': 'Cities'},
        ),
    ]

}}}"	Cleanup/optimization	closed	Migrations	1.7	Normal	fixed	unused import migrations		Accepted	1	0	0	0	0	0
