{"action":"created","issue":{"url":"https://api.github.com/repos/divio/django-cms/issues/4323","labels_url":"https://api.github.com/repos/divio/django-cms/issues/4323/labels{/name}","comments_url":"https://api.github.com/repos/divio/django-cms/issues/4323/comments","events_url":"https://api.github.com/repos/divio/django-cms/issues/4323/events","html_url":"https://github.com/divio/django-cms/issues/4323","id":97810587,"number":4323,"title":"Django CMS plugin instance alias raises unorderable types: NoneType() < int()","user":{"login":"pawelmarkowski","id":9445856,"avatar_url":"https://avatars.githubusercontent.com/u/9445856?v=3","gravatar_id":"","url":"https://api.github.com/users/pawelmarkowski","html_url":"https://github.com/pawelmarkowski","followers_url":"https://api.github.com/users/pawelmarkowski/followers","following_url":"https://api.github.com/users/pawelmarkowski/following{/other_user}","gists_url":"https://api.github.com/users/pawelmarkowski/gists{/gist_id}","starred_url":"https://api.github.com/users/pawelmarkowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pawelmarkowski/subscriptions","organizations_url":"https://api.github.com/users/pawelmarkowski/orgs","repos_url":"https://api.github.com/users/pawelmarkowski/repos","events_url":"https://api.github.com/users/pawelmarkowski/events{/privacy}","received_events_url":"https://api.github.com/users/pawelmarkowski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-28T21:56:34Z","updated_at":"2015-07-29T21:25:06Z","closed_at":null,"body":"Traceback (python 33 dj 183 cms 3.1.2) latest releases of plugins from pip:\r\n\r\n```\r\n...\r\nFile \"/srv/venv/py33dj183/lib/python3.3/site-packages/cms/templatetags/cms_tags.py\" in render_tag\r\n  302.             content = get_placeholder_content(context, request, page, name, inherit, nodelist)\r\nFile \"/srv/venv/py33dj183/lib/python3.3/site-packages/cms/templatetags/cms_tags.py\" in get_placeholder_content\r\n  221.         placeholder = _get_placeholder(current_page, page, context, name)\r\nFile \"/srv/venv/py33dj183/lib/python3.3/site-packages/cms/templatetags/cms_tags.py\" in _get_placeholder\r\n  200.         assign_plugins(context['request'], fetch_placeholders, page.get_template(),  get_language())\r\nFile \"/srv/venv/py33dj183/lib/python3.3/site-packages/cms/utils/plugins.py\" in assign_plugins\r\n  80.         plugin_groups[group] = build_plugin_tree(plugin_groups[group])\r\nFile \"/srv/venv/py33dj183/lib/python3.3/site-packages/cms/utils/plugins.py\" in build_plugin_tree\r\n  138.                       key=attrgetter('parent_id', 'position'))\r\n \r\nException Type: TypeError at /\r\nException Value: unorderable types: NoneType() < int()\r\n```\r\n\r\n1. Restore the database\r\n2. Run the command `manage.py cms fix-tree`\r\n3. Make alias of plugin instance and put into the placeholder\r\n4. Click \"publish\"\r\nand the problem occures each time in my case ... after step 3 and 4. Script `manage.py cms fix-tree` is solving that problem temporary\r\nIn webbrowser console I can see: \r\na) Uncaught TypeError: Cannot read property 'placeholder_id' of undefined cms.structuredboard.js:330 which is id = item.data('settings').placeholder_id;\r\nb) GET http://xxxx.xxx/?edit_off 500 (INTERNAL SERVER ERROR)\r\nc) cms.toolbar.js:234 Uncaught Error: [object Object]\r\n\r\n\r\nregards\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/divio/django-cms/issues/comments/126099569","html_url":"https://github.com/divio/django-cms/issues/4323#issuecomment-126099569","issue_url":"https://api.github.com/repos/divio/django-cms/issues/4323","id":126099569,"user":{"login":"yakky","id":714711,"avatar_url":"https://avatars.githubusercontent.com/u/714711?v=3","gravatar_id":"","url":"https://api.github.com/users/yakky","html_url":"https://github.com/yakky","followers_url":"https://api.github.com/users/yakky/followers","following_url":"https://api.github.com/users/yakky/following{/other_user}","gists_url":"https://api.github.com/users/yakky/gists{/gist_id}","starred_url":"https://api.github.com/users/yakky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yakky/subscriptions","organizations_url":"https://api.github.com/users/yakky/orgs","repos_url":"https://api.github.com/users/yakky/repos","events_url":"https://api.github.com/users/yakky/events{/privacy}","received_events_url":"https://api.github.com/users/yakky/received_events","type":"User","site_admin":false},"created_at":"2015-07-29T21:25:05Z","updated_at":"2015-07-29T21:25:05Z","body":"@ojii ``null=True`` dates back to the very early implementation of the CMS. Being dependent on mptt/treebeard values, and given the current way ``CMSPlugin``s are created, it **must** be null.\r\n@pawelmarkowski could this be related to #4318?"}}