From 884f0711d96ce5e331f618b1e70c57542235c718 Mon Sep 17 00:00:00 2001 From: Mark Hoekveen Date: Sat, 20 Jul 2024 10:04:17 +0200 Subject: [PATCH] profile edit fixes --- playlist/models/profile.py | 6 ++++-- playlist/static/bsod.css | 8 ++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/playlist/models/profile.py b/playlist/models/profile.py index 20e5f26..ed9b765 100644 --- a/playlist/models/profile.py +++ b/playlist/models/profile.py @@ -23,6 +23,8 @@ class Background(models.Model): color = models.CharField(max_length=32, blank=True) class Profile(models.Model): + def __str__(self): + return str(self.user) user = models.OneToOneField(User, on_delete=models.CASCADE) background = models.ForeignKey(Background, null=True, on_delete=models.SET_NULL) last_voted = models.ForeignKey(Track, null=True, on_delete=models.SET_NULL) @@ -30,8 +32,8 @@ class Profile(models.Model): quota = models.FloatField(default=10.0) quota_last_updated = models.DateTimeField(default=timezone.now, null=False) - spt_access_token = models.CharField(max_length=128, default="", null=True) - spt_refresh_token = models.CharField(max_length=128, default="", null=True) + spt_access_token = models.CharField(max_length=256, default="", blank=True, null=True) + spt_refresh_token = models.CharField(max_length=256, default="", blank=True, null=True) spt_expires = models.DateTimeField(default=None, null=True) @property diff --git a/playlist/static/bsod.css b/playlist/static/bsod.css index 0ea8168..90241c2 100644 --- a/playlist/static/bsod.css +++ b/playlist/static/bsod.css @@ -7,7 +7,6 @@ body { display: block; background-color: #000084; font-family: "Pixelated MS Sans Serif", Arial; - margin: 10px; color: #bbb; font-size: 1rem; height: 100vh; @@ -36,12 +35,17 @@ body { color: #000084; padding: 1rem; box-shadow: 1rem 1rem black; - margin: 1rem; + margin: 2rem; text-align: center; align-self: center; } +#bsod div { + margin: 0.5rem 0; +} + #bsod .continue { text-align: center; font-size: 1.5rem; + margin: 2rem; } \ No newline at end of file