Skip to content

Commit

Permalink
to 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
quadrismegistus committed Oct 18, 2023
1 parent 90d47a2 commit 10b67a4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions mep/pages/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
from django.template.defaultfilters import striptags, truncatechars_html
from django.utils.functional import cached_property
from django.utils.text import slugify
from wagtail.admin.panels import FieldPanel, StreamFieldPanel
from wagtail.admin.panels import FieldPanel
from wagtail import blocks
from wagtail.fields import RichTextField, StreamField
from wagtail.models import Page
from wagtail.documents.blocks import DocumentChooserBlock
from wagtail.embeds.blocks import EmbedBlock
from wagtail.images.blocks import ImageChooserBlock
from wagtail.images.edit_handlers import ImageChooserPanel
# from wagtail.images.edit_handlers import ImageChooserPanel
from wagtail.snippets.blocks import SnippetChooserBlock
from wagtail.snippets.models import register_snippet

Expand Down Expand Up @@ -137,7 +137,7 @@ class HomePage(Page):
body = StreamField(BodyContentBlock)

content_panels = Page.content_panels + [
StreamFieldPanel("body"),
FieldPanel("body"),
]

class Meta:
Expand Down Expand Up @@ -184,9 +184,9 @@ class LandingPage(RdfPageMixin, Page):
)

content_panels = Page.content_panels + [
ImageChooserPanel("header_image"),
FieldPanel("header_image"),
FieldPanel("tagline"),
StreamFieldPanel("body"),
FieldPanel("body"),
]

class Meta:
Expand Down Expand Up @@ -421,10 +421,10 @@ class BasePage(RdfPageMixin, Page, PagePreviewDescriptionMixin):

content_panels = Page.content_panels + [
FieldPanel("description"),
StreamFieldPanel("authors"),
StreamFieldPanel("editors"),
ImageChooserPanel("featured_image"),
StreamFieldPanel("body"),
FieldPanel("authors"),
FieldPanel("editors"),
FieldPanel("featured_image"),
FieldPanel("body"),
]

class Meta:
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pucas>=0.8
eulxml>=1.1.3
viapy>=0.2
# wagtail>=2.16,<2.17
wagtail>=3.0,<3.1
wagtail>=4.0,<4.1
# pin for js error with dal>3.5; see https://github.com/Princeton-CDH/mep-django/issues/716
django-autocomplete-light>=3.9
python-dateutil
Expand Down

0 comments on commit 10b67a4

Please sign in to comment.