我们从Python开源项目中,提取了以下3个代码示例,用于说明如何使用wagtail.wagtailcore.models.Orderable()。
def test_inheritance(self): self.assertTrue(issubclass(MenuMenuItem, Orderable)) self.assertTrue(issubclass(MenuMenuItem, AbstractMenuItem)) # fields
def test_inheritance(self): self.assertTrue(issubclass(BasicPageCarouselItem, Orderable)) self.assertTrue(issubclass(BasicPageCarouselItem, AbstractCarouselItem))
def test_inheritance(self): self.assertTrue(issubclass(BasicPageSectionItem, Orderable)) self.assertTrue(issubclass(BasicPageSectionItem, AbstractSectionItem))