Opened 2 years ago

Last modified 2 years ago

#34120 closed Bug

Changing translations of model options and attributes is not detected as change in making migrations — at Version 1

Reported by: Sajjad Sanikhani Owned by: nobody
Component: Migrations Version: 4.1
Severity: Normal Keywords: Translation, Migrations, Models, Locale
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Sajjad Sanikhani)

After writing my model with its options, I made migrations.
Then I changed translation of model verbose name in *.po file and compiled it.
After that I supposed that executing makemigrations, add new migration file that contains new translated verbose name of that model. But it is not happened.
This problem is only with gettext_lazy, because this function return reference of translation in lazy mode. Thus it is not detected as change.

Change History (1)

comment:1 by Sajjad Sanikhani, 2 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top