aboutsummaryrefslogtreecommitdiff
path: root/authentication
diff options
context:
space:
mode:
authorBobby <[email protected]>2024-08-25 03:01:35 -0400
committerBobby <[email protected]>2024-08-25 03:01:35 -0400
commitb8b79d95dcf2bdb955189d59aef28d5d4bccacee (patch)
tree9236205f6e663a41245c1cd04906a3a4d4731c4f /authentication
parent822635e9d02fa11e386954d109e61bec7852ad3c (diff)
downloadyugen-b8b79d95dcf2bdb955189d59aef28d5d4bccacee.tar.xz
yugen-b8b79d95dcf2bdb955189d59aef28d5d4bccacee.zip
fix banner
Diffstat (limited to 'authentication')
-rw-r--r--authentication/migrations/0003_alter_user_discord_avatar_alter_user_discord_banner.py25
-rw-r--r--authentication/models.py4
2 files changed, 27 insertions, 2 deletions
diff --git a/authentication/migrations/0003_alter_user_discord_avatar_alter_user_discord_banner.py b/authentication/migrations/0003_alter_user_discord_avatar_alter_user_discord_banner.py
new file mode 100644
index 0000000..e58e420
--- /dev/null
+++ b/authentication/migrations/0003_alter_user_discord_avatar_alter_user_discord_banner.py
@@ -0,0 +1,25 @@
+# Generated by Django 5.1 on 2024-08-25 07:00
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ (
+ "authentication",
+ "0002_user_discord_access_token_user_discord_refresh_token_and_more",
+ ),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name="user",
+ name="discord_avatar",
+ field=models.CharField(max_length=255, null=True),
+ ),
+ migrations.AlterField(
+ model_name="user",
+ name="discord_banner",
+ field=models.CharField(max_length=255, null=True),
+ ),
+ ]
diff --git a/authentication/models.py b/authentication/models.py
index 59038a3..352cfa8 100644
--- a/authentication/models.py
+++ b/authentication/models.py
@@ -9,6 +9,6 @@ class User(AbstractUser):
discord_refresh_token = models.CharField(max_length=255)
discord_token_type = models.CharField(max_length=255)
discord_username = models.CharField(max_length=255, unique=True)
- discord_avatar = models.CharField(max_length=255)
- discord_banner = models.CharField(max_length=255)
+ discord_avatar = models.CharField(max_length=255, null=True)
+ discord_banner = models.CharField(max_length=255, null=True)
discord_global_name = models.CharField(max_length=255)