1
0
mirror of https://gitlab.com/brutaldon/brutaldon.git synced 2024-12-04 14:46:24 -05:00

Add javascript granular options to models

This commit is contained in:
Jason McBrayer 2018-10-01 18:13:26 -04:00
parent 26a189f780
commit 0f844c5919
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,28 @@
# Generated by Django 2.1.1 on 2018-10-01 22:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('brutaldon', '0014_account_note_seen'),
]
operations = [
migrations.AddField(
model_name='preference',
name='click_to_load',
field=models.BooleanField(default=False),
),
migrations.AddField(
model_name='preference',
name='no_javascript',
field=models.BooleanField(default=False),
),
migrations.AddField(
model_name='preference',
name='notifications',
field=models.BooleanField(default=True),
),
]

View File

@ -30,6 +30,9 @@ class Preference(models.Model):
filter_boosts = models.BooleanField(default=False)
timezone = models.CharField(max_length=80, blank=True, null=True,
choices=timezones, default='UTC')
no_javascript = models.BooleanField(default=False)
notifications = models.BooleanField(default=True)
click_to_load = models.BooleanField(default=False)
class Account(models.Model):
username = models.EmailField(unique=True)