mirror of
https://github.com/codl/forget
synced 2025-01-01 01:48:29 +01:00
fix #25 error when submitting settings with JS disabled
This commit is contained in:
parent
2d56d865d6
commit
aba1635716
7
model.py
7
model.py
@ -155,6 +155,13 @@ class Account(TimestampMixin, RemoteIDMixin):
|
||||
self.dormant = False
|
||||
return enable
|
||||
|
||||
@db.validates('policy_keep_direct')
|
||||
def validate_bool_accept_string(self, key, value):
|
||||
if isinstance(value, str):
|
||||
return value.lower() == 'true'
|
||||
return value
|
||||
|
||||
|
||||
# backref: tokens
|
||||
# backref: twitter_archives
|
||||
# backref: posts
|
||||
|
Loading…
Reference in New Issue
Block a user