|
@@ -6,7 +6,7 @@ from django.shortcuts import redirect, render
|
|
|
from modelcluster.contrib.taggit import ClusterTaggableManager
|
|
|
from modelcluster.fields import ParentalKey
|
|
|
from taggit.models import Tag, TaggedItemBase
|
|
|
-from wagtail.admin.panels import FieldPanel, InlinePanel
|
|
|
+from wagtail.admin.panels import FieldPanel, MultipleChooserPanel
|
|
|
from wagtail.contrib.routable_page.models import RoutablePageMixin, route
|
|
|
from wagtail.fields import StreamField
|
|
|
from wagtail.models import Orderable, Page
|
|
@@ -76,8 +76,9 @@ class BlogPage(Page):
|
|
|
FieldPanel("image"),
|
|
|
FieldPanel("body"),
|
|
|
FieldPanel("date_published"),
|
|
|
- InlinePanel(
|
|
|
+ MultipleChooserPanel(
|
|
|
"blog_person_relationship",
|
|
|
+ chooser_field_name="person",
|
|
|
heading="Authors",
|
|
|
label="Author",
|
|
|
panels=None,
|