#24304: Migrations are being created if you overwrite a translation
----------------------------+----------------------------------------------
     Reporter:  codingjoe   |      Owner:  nobody
         Type:              |     Status:  new
  Uncategorized             |
    Component:  Migrations  |    Version:  1.7
     Severity:  Normal      |   Keywords:  i18n, migrations, makemigrations
 Triage Stage:  Unreviewed  |  Has patch:  0
Easy pickings:  0           |      UI/UX:  0
----------------------------+----------------------------------------------
 '''How to reproduce:'''
 Simply add a translation for 'email address' to a project that includes
 django.contrib.auth.
 Run the `makemigrations` command and a migration for `auth` will be
 created, even tho it is a 3rd party app.

 '''Problem'''
 The problem occurs because the `verbose_name` and `help_test` get frozen
 using the compiled ugettest_lazy. I see that the step is necessary, to
 prevent the migrations from breaking if the translations changes. But both
 arguments are completely unrelated any database schema, therefore it might
 be a good idea to drop them, or to drop anything that relies on
 `ugettext_lazy`.


 '''Current workaround:'''
 Delete locale dir -> make migrations -> restore locale dir.

--
Ticket URL: <https://code.djangoproject.com/ticket/24304>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.bdaa4d6c5e66c88c94df33bc88d2c90e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to