Skip to content

Commit

Permalink
Merge pull request #71 from bashu/patch-2
Browse files Browse the repository at this point in the history
fix #70
  • Loading branch information
marctc committed Oct 23, 2016
2 parents 3849ca9 + 7751f05 commit e239be7
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 e239be7

Please sign in to comment.