Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migration verbose names without translations #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

llybin
Copy link
Contributor

@llybin llybin commented Oct 2, 2019

Миграция не затрагивает схемы БД, только приведение verbose names без переводов, сейчас большинство с русским переводом, но часть англ. makemigrations каждый раз показывает, что есть изменения, чтобы избавиться от этого сообщения.

Migrations for 'sberbank':
  sberbank/migrations/0007_en_verbose_names.py
    - Change Meta options on logentry
    - Change Meta options on payment
    - Alter field action on logentry
    - Alter field bank_id on logentry
    - Alter field created on logentry
    - Alter field payment_id on logentry
    - Alter field request_text on logentry
    - Alter field response_text on logentry
    - Alter field amount on payment
    - Alter field bank_id on payment
    - Alter field client_id on payment
    - Alter field created on payment
    - Alter field details on payment
    - Alter field error_code on payment
    - Alter field error_message on payment
    - Alter field status on payment
    - Alter field updated on payment

P.S. каждый раз задаю вопрос зачем они трекают в миграции verbose_name которое не влияет на схему 🤷🏿‍♂️

@Zagrebelin
Copy link
Contributor

P.S. каждый раз задаю вопрос зачем они трекают в миграции verbose_name которое не влияет на схему

Вроде бы есть корявенький workaround от такой фигни.
https://stackoverflow.com/a/39801321

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants