Commits

Joseph Tate committed a293450

If parent_page_id not set?

  • Participants
  • Parent commits 5b3c37b

Comments (0)

Files changed (1)

File c5t/core/controllers/page.py

           raw_parent_id = kw.get('parent_id', None)
           parent_id = raw_parent_id and ObjectId(raw_parent_id) or None
           kw['parent_id'] = parent_id                  
-        elif parent_page_id == 'top':
+        elif parent_page_id == 'top' or parent_page_id is None:
           kw['parent_id'] = None
         else:
           kw['parent_id'] = parent_page_id