Explorar o código

Allow featured games

Colin Powell %!s(int64=3) %!d(string=hai) anos
pai
achega
bc66370aa9
Modificáronse 2 ficheiros con 21 adicións e 0 borrados
  1. 18 0
      games/migrations/0008_game_featured.py
  2. 3 0
      games/models.py

+ 18 - 0
games/migrations/0008_game_featured.py

@@ -0,0 +1,18 @@
+# Generated by Django 4.0.3 on 2022-04-01 23:46
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('games', '0007_alter_game_marquee_alter_game_region_and_more'),
+    ]
+
+    operations = [
+        migrations.AddField(
+            model_name='game',
+            name='featured',
+            field=models.BooleanField(default=False),
+        ),
+    ]

+ 3 - 0
games/models.py

@@ -153,6 +153,9 @@ class Game(BaseModel):
     undub = models.BooleanField(
         default=False,
     )
+    featured = models.BooleanField(
+        default=False,
+    )
     region = models.CharField(
         max_length=2,
         choices=Region.choices(),