wagtail-deprecated / wagtail-react-streamfield

Powerful field for inserting multiple blocks with nesting. (NO LONGER MAINTAINED - See Wagtail 2.13 Release Notes)

Home Page:https://wagtail.github.io/react-streamfield/public/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

js_initializer error

dfcarpenter opened this issue · comments

Getting an error when I try to runserver with wagtail_react_streamfield freshly installed ( following all the directions )

 File "/Users/dan/work/global_portal/global_portal/core/migrations/0002_auto_20180307_0119.py", line 12, in <module>
    class Migration(migrations.Migration):
  File "/Users/dan/work/global_portal/global_portal/core/migrations/0002_auto_20180307_0119.py", line 25, in Migration
    ('service_section', wagtail.core.fields.StreamField((('services', wagtail.core.blocks.ListBlock(global_portal.blocks.ServicesBlock)),))),
  File "/Users/dan/.local/share/virtualenvs/global_portal-c2XRKUcs/lib/python3.6/site-packages/wagtail/core/blocks/list_block.py", line 33, in __init__
    self.child_js_initializer = self.child_block.js_initializer()
  File "/Users/dan/.local/share/virtualenvs/global_portal-c2XRKUcs/lib/python3.6/site-packages/wagtail_react_streamfield/monkey_patch.py", line 18, in inner
    return new_method(*args, **kwargs)
  File "/Users/dan/.local/share/virtualenvs/global_portal-c2XRKUcs/lib/python3.6/site-packages/wagtail_react_streamfield/blocks/struct_block.py", line 21, in js_initializer
    raise RemovedError
wagtail_react_streamfield.exceptions.RemovedError


Fixed by eeda46e and released in 0.8.5!