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

base models #24

Merged
merged 3 commits into from
Nov 6, 2023
Merged

base models #24

merged 3 commits into from
Nov 6, 2023

Conversation

Vladless
Copy link

No description provided.

max_length=56,
verbose_name='Имя'
)
surname: models.CharField(
Copy link
Member

Choose a reason for hiding this comment

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

Опечатка: Тут =, а не : должно быть

Copy link
Member

Choose a reason for hiding this comment

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

Стилистические правки:

  1. Сделать переносы строк при передачи каждого параметра
  2. Добавить запятую у последнего параметра

Например:

team = models.ForeignKey(
    Team, on_delete=models.SET_NULL,
    blank=True, null=True,
    verbose_name='Команда'
)

переписать так:

team = models.ForeignKey(
    to=Team,
    on_delete=models.SET_NULL,
    blank=True,
    null=True,
    verbose_name='Команда',  # Тут запятая на конце
)  # Каждый параметр с новой стоки

@Raidzin Raidzin merged commit 40859f0 into dev Nov 6, 2023
2 of 4 checks passed
@Raidzin Raidzin deleted the future/models branch November 6, 2023 10:06
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