From b02b75fa90d3c7493f6ea202c8bd4a9425c69230 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Wed, 7 Aug 2024 14:52:26 -0300 Subject: [PATCH] [boardgames] Add BGG username to user profile --- .../0015_userprofile_bgg_username.py | 18 ++++++++++++++++++ vrobbler/apps/profiles/models.py | 2 ++ 2 files changed, 20 insertions(+) create mode 100644 vrobbler/apps/profiles/migrations/0015_userprofile_bgg_username.py diff --git a/vrobbler/apps/profiles/migrations/0015_userprofile_bgg_username.py b/vrobbler/apps/profiles/migrations/0015_userprofile_bgg_username.py new file mode 100644 index 0000000..d4e5831 --- /dev/null +++ b/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), + ), + ] diff --git a/vrobbler/apps/profiles/models.py b/vrobbler/apps/profiles/models.py index 493948b..eb403c0 100644 --- a/vrobbler/apps/profiles/models.py +++ b/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):