add csrf token to forms #2

This commit is contained in:
Yusur 2022-11-10 21:54:48 +01:00
parent 891fe36a83
commit d45d5c4284
2 changed files with 3 additions and 0 deletions

2
app.py
View file

@ -189,6 +189,8 @@ class Page(BaseModel):
@property
def prop(self):
return PagePropertyDict(self)
def is_editable(self):
return not self.is_locked
class PageText(BaseModel):