From dd8280cf4fa9b72e9669b4f97b4466caa429fc11 Mon Sep 17 00:00:00 2001 From: Martin Quarda Date: Tue, 25 Jun 2024 14:39:23 +0200 Subject: [PATCH] better page --- .../0011_alter_user_alkator_class.py | 18 ++++++++++++++++++ alkatorapi/models.py | 4 ++-- frontend/src/scripts/index.js | 1 + 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 alkatorapi/migrations/0011_alter_user_alkator_class.py diff --git a/alkatorapi/migrations/0011_alter_user_alkator_class.py b/alkatorapi/migrations/0011_alter_user_alkator_class.py new file mode 100644 index 0000000..e99bdaf --- /dev/null +++ b/alkatorapi/migrations/0011_alter_user_alkator_class.py @@ -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')]), + ), + ] diff --git a/alkatorapi/models.py b/alkatorapi/models.py index a1bded1..772c108 100644 --- a/alkatorapi/models.py +++ b/alkatorapi/models.py @@ -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"" + return f"" diff --git a/frontend/src/scripts/index.js b/frontend/src/scripts/index.js index f9c9364..81e7bb0 100644 --- a/frontend/src/scripts/index.js +++ b/frontend/src/scripts/index.js @@ -230,6 +230,7 @@ class Main extends Component {

Sportem ku chlastu!

+

Výsledky 1. ročníku

{this.state.results &&