latest changes, like logging neck + headache
This commit is contained in:
@@ -95,6 +95,10 @@ class Task(models.Model):
|
||||
class UserSettings(models.Model):
|
||||
"""Private, per-user preferences that do not belong on Django's User model."""
|
||||
|
||||
class Appearance(models.TextChoices):
|
||||
LIGHT = 'light', 'Light'
|
||||
DARK = 'dark', 'Dark'
|
||||
|
||||
user = models.OneToOneField(
|
||||
settings.AUTH_USER_MODEL, on_delete=models.CASCADE, related_name='planner_settings'
|
||||
)
|
||||
@@ -107,6 +111,9 @@ class UserSettings(models.Model):
|
||||
validators=[MinValueValidator(-180), MaxValueValidator(180)],
|
||||
)
|
||||
time_zone = models.CharField(max_length=64, default='Europe/Amsterdam')
|
||||
appearance = models.CharField(
|
||||
max_length=5, choices=Appearance.choices, default=Appearance.LIGHT,
|
||||
)
|
||||
onboarding_enabled = models.BooleanField(default=True)
|
||||
onboarding_step = models.PositiveSmallIntegerField(default=0)
|
||||
created_at = models.DateTimeField(auto_now_add=True)
|
||||
|
||||
Reference in New Issue
Block a user