#33566: Issue with migrations after upgrading Django 2 to Django 3.2.
-------------------------------------+-------------------------------------
     Reporter:  Ismael Jerez         |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  Migrations           |                  Version:  3.2
     Severity:  Normal               |               Resolution:  needsinfo
     Keywords:  orm, migrate,        |             Triage Stage:
  makemigrations, database,          |  Unreviewed
  migrations, migration              |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):

 * status:  new => closed
 * resolution:   => needsinfo


Comment:

 Thanks for the follow-up.

 How are you setting language for your project? Do you have any
 customisations there at boot-up?

 I'm struggling to get the options translated into Spanish at all (in
 `migrate` or `makemigrations`):

 {{{
             options={'verbose_name': 'grupo', 'verbose_name_plural':
 'grupos'},
 }}}

 This is because both `migrate` and `makemigrations` use the private
 `@no_translations` decorator
 
([https://github.com/django/django/blob/c32858a8ce961d276215a040ae0ab1e4409b70f8/django/core/management/base.py#L87
 src]).

 The only way I've managed to reproduce your error is by disabling that and
 then adding `LANGUAGE_CODE = "es"` to settings.
 However if I do that, the change applies equally to `makemigrations`.

 I was able to reproduce that with a stock fresh project created with
 `startproject`, so you should be able to do the same, but it looks like
 you must have some customisation in play that you've not specified here.
 If you can include it in a minimal sample project, happy to have a look.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33566#comment:3>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018147afc5d4-4d12da94-8055-4fa2-bf25-e72a5abc1508-000000%40eu-central-1.amazonses.com.

Reply via email to