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

Acquiring #2484

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Acquiring #2484

wants to merge 3 commits into from

Conversation

paulinenik
Copy link
Contributor

https://3.basecamp.com/5104612/buckets/29069198/todos/8150750853

В новой модели Acquiring создала новые чоисы для выбора банков. Здесь не получится использовать BANK_CHOICES из-за циклического импорта, потому что BANK_CHOICES формируются динамически из банков, которые наследуются от Bank

@paulinenik paulinenik requested a review from f213 December 26, 2024 18:14
Copy link
Contributor

@f213 f213 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Модель мне не ок, ответил в бейскемпе.



class Acquiring(DefaultModel):
class Bank(TextChoices):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Давай всё же попробуем разрулить циклические импорты.

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