alias51
alias51

Reputation: 8648

Wagtail streamfield not rendering as expected

I am new to Wagtail and have just successfully installed my first site with a StreamField block:

class DefaultPage(Page):
    author = models.CharField(max_length=255, blank=True, null=True)
    date = models.DateField("Post date", blank=True, null=True)
    body = StreamField([
        ('title', blocks.CharBlock(form_classname="full title")),
        ('paragraph', blocks.RichTextBlock()),
        ('image', ImageChooserBlock()),
    ], blank=True, null=True)

However, the admin panel for the streamfield does not render this as expected. I expected a black control panel with inline editing, per the official Wagtail site:

enter image description here

Instead I have a different "light" theme UI:

enter image description here

Am I looking at different features? Is there an update in the latest release not on the official site?

Upvotes: 0

Views: 283

Answers (1)

gasman
gasman

Reputation: 25317

Yes, the design of StreamField was updated in Wagtail 2.7.

(The outdated screenshot has been flagged up, and should hopefully be fixed in the next release.)

Upvotes: 2

Related Questions