mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-11 04:19:25 +00:00
Add a missing template
This commit is contained in:
@ -39,6 +39,7 @@ class PagePropView(UpdateView):
|
||||
def get_object(self):
|
||||
page_name = self.kwargs['page_name']
|
||||
p = Page.get_page_by_full_name(page_name)
|
||||
# Create the page if it does not exists
|
||||
if p == None:
|
||||
parent_name = '/'.join(page_name.split('/')[:-1])
|
||||
name = page_name.split('/')[-1]
|
||||
|
Reference in New Issue
Block a user