浏览代码

[boardgames] Add BGG username to user profile

Colin Powell 9 月之前
父节点
当前提交
b02b75fa90
共有 2 个文件被更改,包括 20 次插入0 次删除
  1. 18 0
      vrobbler/apps/profiles/migrations/0015_userprofile_bgg_username.py
  2. 2 0
      vrobbler/apps/profiles/models.py

+ 18 - 0
vrobbler/apps/profiles/migrations/0015_userprofile_bgg_username.py

@@ -0,0 +1,18 @@
+# Generated by Django 4.2.13 on 2024-08-06 15:27
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ("profiles", "0014_alter_userprofile_timezone"),
+    ]
+
+    operations = [
+        migrations.AddField(
+            model_name="userprofile",
+            name="bgg_username",
+            field=models.CharField(blank=True, max_length=255, null=True),
+        ),
+    ]

+ 2 - 0
vrobbler/apps/profiles/models.py

@@ -30,6 +30,8 @@ class UserProfile(TimeStampedModel):
     archivebox_password = EncryptedField(**BNULL)
     archivebox_url = models.CharField(max_length=255, **BNULL)
 
+    bgg_username = models.CharField(max_length=255, **BNULL)
+
     redirect_to_webpage = models.BooleanField(default=True)
 
     def __str__(self):