MidAtlanticPortal / marco-portal2

An ocean planning resource center and interactive mapping tool for the Mid-Atlantic Regional Council on the Ocean.
http://portal.midatlanticocean.org/
ISC License
4 stars 1 forks source link

Editing Menus Is Broken #19

Closed rhodges closed 6 years ago

rhodges commented 6 years ago

TypeError at /admin/snippets/menu/menu/9/

getattr(): attribute name must be string

Request Method: GET
Request URL http://midatlantic.webfactional.com/admin/snippets/menu/menu/9/
Django Version 1.7.11
Exception Type TypeError
Exception Value getattr(): attribute name must be string
Exception Location /home/midatlantic/env/marco_portal2/lib/python2.7/site-packages/wagtail/wagtailadmin/edit_handlers.py in bind_to_model, line 714
Python Executable /usr/bin/python
Python Version 2.7.5
/home/midatlantic/env/marco_portal2/lib/python2.7/site-packages/wagtail/wagtailsnippets/views/snippets.py in edit

195. edit_handler_class = get_snippet_edit_handler(model)
Variable Value
content_type_app_name u'menu'
permission 'menu.change_menu'
... ...
content_type_model_name u'menu'
-- --
instance <Menu: Footer 1. News >
content_type
snippet_type_name u'menu'
model <class 'portal.menu.models.Menu'>
id u'9'
rhodges commented 6 years ago

Fixed via 2c4aa544f4a6c175b85b8d2ed6422f2d9e7159a4