Skip to content

Commit

Permalink
стилистические правки, поправлена опечатка
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladless committed Oct 31, 2023
1 parent 31ce44f commit 656fe88
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions adaptive_hockey_federation/main/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Team(models.Model):
"""
name = models.CharField(
max_length=256,
verbose_name='Название'
verbose_name='Название',
)

class Meta:
Expand All @@ -22,7 +22,7 @@ class Position(models.Model):
"""
name = models.CharField(
max_length=256,
verbose_name='Название'
verbose_name='Название',
)

class Meta:
Expand All @@ -46,28 +46,33 @@ class BaseUserInfo(models.Model):
]
name = models.CharField(
max_length=56,
verbose_name='Имя'
verbose_name='Имя',
)
surname: models.CharField(
surname = models.CharField(
max_length=56,
)
date_of_birth = models.DateTimeField(
verbose_name='Дата рождения'
verbose_name='Дата рождения',
)
team = models.ForeignKey(
Team, on_delete=models.SET_NULL,
blank=True, null=True,
verbose_name='Команда'
to=Team,
on_delete=models.SET_NULL,
blank=True,
null=True,
verbose_name='Команда',
)
position = models.ForeignKey(
Team, on_delete=models.SET_NULL,
blank=True, null=True,
verbose_name='Позиция'
to=Team,
on_delete=models.SET_NULL,
blank=True,
null=True,
verbose_name='Позиция',
)
classification = models.CharField(
max_length=255,
choices=CLS_CHOICES,
default=None)
default=None,
)

def __str__(self):
return self.name

0 comments on commit 656fe88

Please sign in to comment.