better page
This commit is contained in:
parent
ac2cc8db62
commit
dd8280cf4f
18
alkatorapi/migrations/0011_alter_user_alkator_class.py
Normal file
18
alkatorapi/migrations/0011_alter_user_alkator_class.py
Normal file
@ -0,0 +1,18 @@
|
||||
# Generated by Django 4.2.11 on 2024-06-25 12:31
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('alkatorapi', '0010_user_alkator_class'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='user',
|
||||
name='alkator_class',
|
||||
field=models.IntegerField(choices=[(1, 'Jaro 2024'), (2, 'Podzim 2024')]),
|
||||
),
|
||||
]
|
@ -31,7 +31,7 @@ class User(models.Model):
|
||||
duration = models.DurationField(null=True, blank=True)
|
||||
starting_number = models.IntegerField(null=True, blank=True)
|
||||
alkator_category = models.IntegerField(choices=ALKATOR_CHOICES, default=1)
|
||||
alkator_class = models.IntegerField(choices=ALKATOR_CLASSES, default=1)
|
||||
alkator_class = models.IntegerField(choices=ALKATOR_CLASSES)
|
||||
|
||||
def __str__(self):
|
||||
return f"<User {self.starting_number} {self.first_name} {self.last_name} {self.email} {self.duration} {self.alkator_category} {self.alkator_class}>"
|
||||
return f"<User {self.starting_number} {self.first_name} {self.last_name} {self.email} {self.duration} {self.alkator_category} {ALKATOR_CLASSES_DICT[self.alkator_class]}>"
|
||||
|
@ -230,6 +230,7 @@ class Main extends Component {
|
||||
<p>Sportem ku chlastu!</p>
|
||||
</div>
|
||||
<div class="col-xl-6">
|
||||
<h1 class="text" >Výsledky 1. ročníku</h1>
|
||||
{this.state.results &&
|
||||
<table class="table results">
|
||||
<thead>
|
||||
|
Loading…
x
Reference in New Issue
Block a user