Bug ? | Django 1.9.11 | ManyToManyField with help_text

28 views
Skip to first unread message

Artem Bernatskyy

unread,
Nov 11, 2016, 9:05:32 AM11/11/16
to Django users
If i add ManyToManyField through intermediary table with "help text" and run makemigrations
there will be created 'dummy migration' which doesn't have any sense
and when i call lt repeatingly  for example
'./manage,py makemigrations  && ./manage,py migrate'
'./manage,py makemigrations  && ./manage,py migrate'
'./manage,py makemigrations  && ./manage,py migrate'

... and every time without code changing there will be new migration created !

Code example :

    parsers = models.ManyToManyField(
        Parser,
        through='FundParser',
        related_name='funds',
        blank=True, help_text=_("")
    )

Tim Graham

unread,
Nov 11, 2016, 1:02:17 PM11/11/16
to Django users
There's a known bug that help_text=_("") triggers infinite migrations, perhaps you could add your use case to the ticket.

https://code.djangoproject.com/ticket/24964

Artem Bernatskyy

unread,
Nov 11, 2016, 4:27:02 PM11/11/16
to Django users
Thanks
Reply all
Reply to author
Forward
0 new messages