Properly names fields

clubs
Laurent 1 year ago
parent f98d60f46d
commit 5f88298d7c
  1. 23
      tournaments/migrations/0055_rename_globalid_tournament_global_id_and_more.py
  2. 4
      tournaments/models/tournament.py

@ -0,0 +1,23 @@
# Generated by Django 4.2.11 on 2024-05-22 14:02
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('tournaments', '0054_rename_payment_tournament_globalid_and_more'),
]
operations = [
migrations.RenameField(
model_name='tournament',
old_name='globalId',
new_name='global_id',
),
migrations.RenameField(
model_name='tournament',
old_name='localId',
new_name='local_id',
),
]

@ -43,9 +43,9 @@ class Tournament(models.Model):
qualified_per_group_stage = models.IntegerField(default=0) qualified_per_group_stage = models.IntegerField(default=0)
teams_per_group_stage = models.IntegerField(default=0) teams_per_group_stage = models.IntegerField(default=0)
entry_fee = models.FloatField(default=20.0, null=True, blank=True) entry_fee = models.FloatField(default=20.0, null=True, blank=True)
globalId = models.CharField(max_length=100, null=True, blank=True) #represent the payment crypted string global_id = models.CharField(max_length=100, null=True, blank=True) #represent the payment crypted string
is_deleted = models.BooleanField(default=False) is_deleted = models.BooleanField(default=False)
localId = models.CharField(max_length=100, null=True, blank=True) #represent the is_canceled crypted string local_id = models.CharField(max_length=100, null=True, blank=True) #represent the is_canceled crypted string
additional_estimation_duration = models.IntegerField(default=0) additional_estimation_duration = models.IntegerField(default=0)
publish_teams = models.BooleanField(default=False) publish_teams = models.BooleanField(default=False)
publish_summons = models.BooleanField(default=False) publish_summons = models.BooleanField(default=False)

Loading…
Cancel
Save