diff --git a/brutaldon/models.py b/brutaldon/models.py index 185aaf5..e0ff6e8 100644 --- a/brutaldon/models.py +++ b/brutaldon/models.py @@ -25,7 +25,7 @@ class Theme(models.Model): return self.name class Preference(models.Model): - theme = models.ForeignKey(Theme, models.SET_NULL, null=True) + theme = models.ForeignKey(Theme, models.CASCADE, null=False, default=1) filter_replies = models.BooleanField(default=False) filter_boosts = models.BooleanField(default=False) timezone = models.CharField(max_length=80, blank=True, null=True, diff --git a/brutaldon/templates/setup/settings.html b/brutaldon/templates/setup/settings.html index 9205bad..eb8b79f 100644 --- a/brutaldon/templates/setup/settings.html +++ b/brutaldon/templates/setup/settings.html @@ -2,40 +2,48 @@ {% load widget_tweaks %} {% block content %} -