wagtail-deprecated / wagtail-react-streamfield

Powerful field for inserting multiple blocks with nesting. (NO LONGER MAINTAINED - See Wagtail 2.13 Release Notes)
https://wagtail.github.io/react-streamfield/public/
BSD 3-Clause "New" or "Revised" License
74 stars 23 forks source link

__str__ method not used when coupled with wagtailmodelchooser #44

Closed brianedelman closed 5 years ago

brianedelman commented 5 years ago

I am using wagtailmodelchooser for a project and am using this package as well. Model chooser fields aren't showing up with a str representation of the object. I removed the react stream fields and am able to see them with the default setup. Screen Shot 2019-08-08 at 12 56 18 PM This is how it looks without: Screen Shot 2019-08-08 at 1 05 15 PM

I can investigate more deeply and potentially create a PR when I get some time.

BertrandBordage commented 5 years ago

This is the same issue as https://github.com/wagtail/wagtail-react-streamfield/issues/26. It’s because the JavaScript widget does not correctly implements the change method, an issue I had to work around to make the official choosers work. There’s nothing wagtail-react-streamfield can do about it.

I’m closing this issue in favor of #26.