remove user.paid, add user.alakator
This commit is contained in:
parent
588b06c73d
commit
3188d433b3
22
alkatorapi/migrations/0007_remove_user_paid_user_alkator.py
Normal file
22
alkatorapi/migrations/0007_remove_user_paid_user_alkator.py
Normal file
@ -0,0 +1,22 @@
|
||||
# Generated by Django 4.2.11 on 2024-05-06 10:45
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('alkatorapi', '0006_alter_user_address'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='user',
|
||||
name='paid',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='user',
|
||||
name='alkator',
|
||||
field=models.BooleanField(default=True),
|
||||
),
|
||||
]
|
@ -8,9 +8,9 @@ class User(models.Model):
|
||||
email = models.EmailField(max_length=120, null=True, blank=True)
|
||||
date_of_birth = models.DateField(null=True, blank=True)
|
||||
register_date = models.DateTimeField(auto_now=True)
|
||||
paid = models.BooleanField(default=False)
|
||||
duration = models.DurationField(null=True, blank=True)
|
||||
starting_number = models.IntegerField(null=True, blank=True)
|
||||
alkator = models.BooleanField(default=True)
|
||||
|
||||
def __str__(self):
|
||||
return f"<User {self.first_name} {self.last_name} {self.email} {self.paid}>"
|
||||
return f"<User {self.starting_number} {self.first_name} {self.last_name} {self.email} {self.duration} {self.alkator}>"
|
||||
|
@ -106,6 +106,7 @@ class Main extends Component {
|
||||
<div class="container">
|
||||
<img class="logo" src="/public/logo.svg"></img>
|
||||
</div>
|
||||
<div class="container text-center"><h1>Další ročník bude teprve oznámen!</h1></div>
|
||||
{/*
|
||||
<div class="container info text-center">
|
||||
<div class="row">
|
||||
@ -134,7 +135,7 @@ class Main extends Component {
|
||||
*/}
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="text">
|
||||
<div class="text col-xl-6">
|
||||
<p>Vítej člověče! Momentálně se nacházíš na oficiální stránce závodu ALKÁTOR RACE.</p>
|
||||
|
||||
<p>A co že jsme si to zase vymysleli!? </p>
|
||||
@ -154,12 +155,12 @@ class Main extends Component {
|
||||
<p>Rozhodně se podívej na FAQ sekci, zde na stránce, kde najdeš důležité informace týkající se závodu ALKÁTOR RACE.</p>
|
||||
<p>Sportem ku chlastu!</p>
|
||||
</div>
|
||||
{/*
|
||||
<div class="col-xl-6">
|
||||
{/*
|
||||
<img src="/public/trasa.png" style={{'width': '100%', 'height': 'auto'}}/>
|
||||
*/}
|
||||
<iframe width="100%" height="500px" src="https://www.youtube.com/embed/H1UeXTBpsXw?si=kkh2_BBJXw56gVaP" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen="true" />
|
||||
</div>
|
||||
*/}
|
||||
</div>
|
||||
</div>
|
||||
<div class="container text text-center">
|
||||
|
Loading…
x
Reference in New Issue
Block a user