Jelajahi Sumber

[scrobbles] Add gpx file for trails

Colin Powell 9 bulan lalu
induk
melakukan
5d1edc71d7

+ 20 - 0
vrobbler/apps/scrobbles/migrations/0063_scrobble_gpx_file.py

@@ -0,0 +1,20 @@
+# Generated by Django 4.2.16 on 2024-09-11 17:31
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ("scrobbles", "0062_scrobble_trail_alter_scrobble_media_type"),
+    ]
+
+    operations = [
+        migrations.AddField(
+            model_name="scrobble",
+            name="gpx_file",
+            field=models.FileField(
+                blank=True, null=True, upload_to="scrobbles/gpx_file/"
+            ),
+        ),
+    ]

+ 1 - 0
vrobbler/apps/scrobbles/models.py

@@ -548,6 +548,7 @@ class Scrobble(TimeStampedModel):
     videogame_save_data = models.FileField(
         upload_to="scrobbles/videogame_save_data/", **BNULL
     )
+    gpx_file = models.FileField(upload_to="scrobbles/gpx_file/", **BNULL)
     screenshot = models.ImageField(
         upload_to="scrobbles/videogame_screenshot/", **BNULL
     )