Skip to content

Commit

Permalink
Remove ID field from Event model, do not merge
Browse files Browse the repository at this point in the history
  • Loading branch information
amitkaplansky committed Jun 2, 2023
1 parent 426753f commit 3fac629
Show file tree
Hide file tree
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
Expand Up @@ -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()
Expand Down

0 comments on commit 3fac629

Please sign in to comment.