Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove ID field from Event model, do not merge
Browse files Browse the repository at this point in the history
amitkaplansky committed Jun 2, 2023
1 parent 48cbc18 commit b1b85a9
Showing 2 changed files with 18 additions and 1 deletion.
18 changes: 18 additions & 0 deletions game_event/migrations/0003_alter_gameevent_id.py
Original file line number Diff line number Diff line change
@@ -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'),
),
]
1 change: 0 additions & 1 deletion game_event/models.py
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit b1b85a9

Please sign in to comment.