def setUp(self):
    self.root_page = Page.objects.get(id=2)
    self.single_event_page = SingleEventPage(title='foo', location='the moon', audience='public', cost='free', date_from='2001-01-01')
    self.root_page.add_child(instance=self.single_event_page)
def setUp(self):
    self.root_page = Page.objects.get(id=2)
    self.single_event_page = SingleEventPage(title='foo', location='the moon', audience='public', cost='free', date_from='2001-01-01')
    self.root_page.add_child(instance=self.single_event_page)