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

js_initializer error #8

Closed dfcarpenter closed 6 years ago

dfcarpenter commented 6 years ago

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
BertrandBordage commented 6 years ago

Fixed by eeda46e3bcf28b8e859626dd4e311e6e32a3a262 and released in 0.8.5!