aboutsummaryrefslogtreecommitdiffstats
path: root/handlers.py
diff options
context:
space:
mode:
authorFulgen301 <tokmajigeorge@gmail.com>2018-09-16 18:04:36 +0200
committerFulgen301 <tokmajigeorge@gmail.com>2018-09-16 18:04:36 +0200
commitc5690d5fa130bd66f920fbc2f2df033f10db1c79 (patch)
treec6ceba3ecf5acaf2f72e72d222441e334590bb3b /handlers.py
parent119d2aaabedc678bd94e07d12d3192ab5ad862f1 (diff)
downloadparry-c5690d5fa130bd66f920fbc2f2df033f10db1c79.tar.gz
parry-c5690d5fa130bd66f920fbc2f2df033f10db1c79.zip
Mark read-only entries read-only
Diffstat (limited to 'handlers.py')
-rw-r--r--handlers.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/handlers.py b/handlers.py
index 433b76a..2cb6c88 100644
--- a/handlers.py
+++ b/handlers.py
@@ -53,6 +53,7 @@ class Website(Site):
entry.slug = "".join(i for i in html.unescape(m["title"]).lower() if i in string.ascii_letters)
entry.updated_at = datetime.strptime(m["updatedAt"], self.date_format)
entry._v = 1
+ entry.readonly = True
try:
entry.author = session.query(User).filter_by(name=m["author"]).one()