Add game end functionality with view and URL routing, update models and templates for game state management
This commit is contained in:
parent
d03d3b48d4
commit
f9ed70d386
9 changed files with 181 additions and 89 deletions
|
@ -0,0 +1,21 @@
|
|||
# Generated by Django 5.2.3 on 2025-06-15 10:44
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
("game", "0018_musicgameanswer"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name="musikgame",
|
||||
options={"ordering": ["-over", "-date"]},
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="musikgame",
|
||||
name="over",
|
||||
field=models.BooleanField(default=False),
|
||||
),
|
||||
]
|
16
game/migrations/0020_alter_musikgame_options.py
Normal file
16
game/migrations/0020_alter_musikgame_options.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
# Generated by Django 5.2.3 on 2025-06-15 10:59
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
("game", "0019_alter_musikgame_options_musikgame_over"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name="musikgame",
|
||||
options={"ordering": ["over", "-date"]},
|
||||
),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue