Commits

Joseph Tate  committed d060ce0

Fix up deleting news

  • Participants
  • Parent commits 59f2455

Comments (0)

Files changed (2)

File c5t/core/controllers/page.py

 
         page_id = kw.get('page_id')
         page_type = kw.get('page_type')
-        if page_type is 'News':
+        if page_type == 'News':
           page = News.query.get(_id=ObjectId(page_id))
         else:
           page = Page.query.get(_id=ObjectId(page_id))

File c5t/core/templates/calendar/event/get_all.mak

 %if cal:
   <a href="../edit">[edit]</a>
   <a href="../delete">[delete]</a>
-%endif
+%endif