Set user profile TZ to UTC by default, and setup signal

This commit is contained in:
2024-01-26 23:44:09 -05:00
parent 7cb818b585
commit f22ef1a163
3 changed files with 610 additions and 3 deletions

View File

@ -17,9 +17,7 @@ class UserProfile(TimeStampedModel):
User, on_delete=models.CASCADE, related_name="profile"
)
timezone = models.CharField(
max_length=255,
choices=PRETTY_TIMEZONE_CHOICES,
**BNULL,
max_length=255, choices=PRETTY_TIMEZONE_CHOICES, default="UTC"
)
lastfm_username = models.CharField(max_length=255, **BNULL)
lastfm_password = EncryptedField(**BNULL)