diff --git a/game_event/migrations/0003_alter_gameevent_id.py b/game_event/migrations/0003_alter_gameevent_id.py new file mode 100644 index 0000000..d4093b2 --- /dev/null +++ b/game_event/migrations/0003_alter_gameevent_id.py @@ -0,0 +1,18 @@ +# Generated by Django 4.2 on 2023-05-29 13:27 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('game_event', '0002_rename_court_id_gameevent_court'), + ] + + operations = [ + migrations.AlterField( + model_name='gameevent', + name='id', + field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'), + ), + ] diff --git a/game_event/models.py b/game_event/models.py index efdfdab..00193ba 100644 --- a/game_event/models.py +++ b/game_event/models.py @@ -10,7 +10,6 @@ class GameEvent(models.Model): - id = models.IntegerField(primary_key=True) time = models.DateTimeField(null=False) level_of_game = models.IntegerField(choices=Rating.choices, blank=True) min_number_of_players = models.PositiveIntegerField()