Colin Powell пре 3 година
родитељ
комит
bc66370aa9
2 измењених фајлова са 21 додато и 0 уклоњено
  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(),