mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-31 06:39:31 +00:00
Add a missing template
This commit is contained in:
1 parent
431b81cd42
commit
385f91a9db
3 files changed
+30
-4
No files matched your search
@@ -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