add csrf token to forms #2
This commit is contained in:
parent
891fe36a83
commit
d45d5c4284
2 changed files with 3 additions and 0 deletions
2
app.py
2
app.py
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue