{{{
from django.db import models
from django.utils.translation import ugettext_lazy as _
class sample(models.Model):
sample_field = models.CharField(max_length=5, help_text=_(""))
}}}
Executing `makemigrations` command generates new migration file without
any change in the contents.
The previous model generates the following migration file:
{{{
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mig', '0005_auto_20191029_1638'),
]
operations = [
migrations.AlterField(
model_name='sample',
name='sample_field',
field=models.CharField(help_text='', max_length=5),
),
]
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/30926>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* Attachment "mig.zip" added.
Sample project
* Attachment "bug.zip" added.
* status: new => closed
* resolution: => duplicate
Comment:
Duplicate of #24964.
--
Ticket URL: <https://code.djangoproject.com/ticket/30926#comment:1>