{{{
from django.db import models
from django.utils.translation import gettext_lazy as _
# Create your models here.
class MyModel(models.Model):
id = models.AutoField(primary_key=True)
my_field = models.CharField(max_length=2, help_text=_(''))
}}}
Then do python manage.py makemigrations and it will create migration files
forever.
I know using empty string for gettext_lazy is a nonsense, but it should
not behave that way.
--
Ticket URL: <https://code.djangoproject.com/ticket/29958>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* component: Database layer (models, ORM) => Migrations
* resolution: => duplicate
Comment:
Duplicate of #24964.
--
Ticket URL: <https://code.djangoproject.com/ticket/29958#comment:1>
Comment (by Javier Matos Odut):
Replying to [comment:1 Tim Graham]:
> Duplicate of #24964.
Ups, so sorry I did not check it properly before reporting this bug :(
--
Ticket URL: <https://code.djangoproject.com/ticket/29958#comment:2>