Skip to content

Commit

Permalink
fix #70
Browse files Browse the repository at this point in the history
  • Loading branch information
bashu committed Oct 22, 2016
1 parent 6ba6902 commit 7751f05
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions puput/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
from django.template.defaultfilters import slugify
from django.utils.translation import ugettext_lazy as _
from django.utils.encoding import python_2_unicode_compatible
from django.utils import six

from wagtail.wagtailcore.models import Page
from wagtail.wagtailcore.models import Page, PageBase
from wagtail.wagtailadmin.edit_handlers import FieldPanel, MultiFieldPanel
from wagtail.wagtailimages.edit_handlers import ImageChooserPanel
from wagtail.wagtailsnippets.models import register_snippet
Expand Down Expand Up @@ -154,7 +155,7 @@ class EntryPageRelated(models.Model):
entrypage_to = ParentalKey('EntryPage', verbose_name=_("Entry"), related_name='related_entrypage_to')


class EntryPage(Page, Entry):
class EntryPage(six.with_metaclass(PageBase, Entry, Page)):
# Search
search_fields = Page.search_fields + [
index.SearchField('body'),
Expand Down

0 comments on commit 7751f05

Please sign in to comment.