diff --git a/src/events/migrations/0006_auto_20220114_2319.py b/src/events/migrations/0006_auto_20220114_2319.py new file mode 100644 index 0000000..ebc5023 --- /dev/null +++ b/src/events/migrations/0006_auto_20220114_2319.py @@ -0,0 +1,22 @@ +# Generated by Django 3.1.5 on 2022-01-14 23:19 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('events', '0005_auto_20211227_1556'), + ] + + operations = [ + migrations.RemoveField( + model_name='team', + name='size', + ), + migrations.AddField( + model_name='team', + name='auto', + field=models.BooleanField(default=False), + ), + ] diff --git a/src/events/models.py b/src/events/models.py index e6ff11e..57091bc 100644 --- a/src/events/models.py +++ b/src/events/models.py @@ -22,9 +22,9 @@ class Team(models.Model): name = models.CharField(max_length=200) password = models.CharField(max_length=200) event = models.ForeignKey(Event, on_delete=models.CASCADE, null=True) - size = models.PositiveIntegerField(default=1) score = models.PositiveIntegerField(default=0, db_index=True) last_submission_date = models.DateTimeField('Last Submission Date', default=timezone.now) + auto = models.BooleanField(default=False) def __str__(self): return self.name diff --git a/src/events/templates/events/create_team.html b/src/events/templates/events/create_team.html index 0e574ac..72e0ec6 100644 --- a/src/events/templates/events/create_team.html +++ b/src/events/templates/events/create_team.html @@ -10,17 +10,12 @@
{% endblock %} \ No newline at end of file diff --git a/src/events/templates/events/event_info.html b/src/events/templates/events/event_info.html index b6f8ec8..32c9542 100644 --- a/src/events/templates/events/event_info.html +++ b/src/events/templates/events/event_info.html @@ -108,8 +108,8 @@