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:
parent
26a189f780
commit
0f844c5919
28
brutaldon/migrations/0015_auto_20181001_1812.py
Normal file
28
brutaldon/migrations/0015_auto_20181001_1812.py
Normal 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),
|
||||||
|
),
|
||||||
|
]
|
@ -30,6 +30,9 @@ class Preference(models.Model):
|
|||||||
filter_boosts = models.BooleanField(default=False)
|
filter_boosts = models.BooleanField(default=False)
|
||||||
timezone = models.CharField(max_length=80, blank=True, null=True,
|
timezone = models.CharField(max_length=80, blank=True, null=True,
|
||||||
choices=timezones, default='UTC')
|
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):
|
class Account(models.Model):
|
||||||
username = models.EmailField(unique=True)
|
username = models.EmailField(unique=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user