{"action":"created","issue":{"url":"https://api.github.com/repos/wagtail/wagtail/issues/4321","repository_url":"https://api.github.com/repos/wagtail/wagtail","labels_url":"https://api.github.com/repos/wagtail/wagtail/issues/4321/labels{/name}","comments_url":"https://api.github.com/repos/wagtail/wagtail/issues/4321/comments","events_url":"https://api.github.com/repos/wagtail/wagtail/issues/4321/events","html_url":"https://github.com/wagtail/wagtail/issues/4321","id":300959417,"number":4321,"title":"Script for migrating to wagtail 2 ?","user":{"login":"stuaxo","id":179677,"avatar_url":"https://avatars1.githubusercontent.com/u/179677?v=4","gravatar_id":"","url":"https://api.github.com/users/stuaxo","html_url":"https://github.com/stuaxo","followers_url":"https://api.github.com/users/stuaxo/followers","following_url":"https://api.github.com/users/stuaxo/following{/other_user}","gists_url":"https://api.github.com/users/stuaxo/gists{/gist_id}","starred_url":"https://api.github.com/users/stuaxo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuaxo/subscriptions","organizations_url":"https://api.github.com/users/stuaxo/orgs","repos_url":"https://api.github.com/users/stuaxo/repos","events_url":"https://api.github.com/users/stuaxo/events{/privacy}","received_events_url":"https://api.github.com/users/stuaxo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-28T09:56:23Z","updated_at":"2018-02-28T12:02:16Z","closed_at":"2018-02-28T10:39:30Z","author_association":"NONE","body":"AFAICT migrating a module to wagtail 2 involves module renames and adding on_delete to FKs \r\n\r\nThis ticket https://github.com/wagtail/django-modelcluster/issues/89 mentions a script.\r\n\r\nAny idea where this is ?   It seems like it would speed up porting a library I need.\r\n\r\n\r\nWhen it comes to adding on_delete - was the django equivilent DELETE_CASCADE or SET_NULL where this wasn't specified before ?\r\n\r\nI've been using SET_NULL in a couple of libraries I ported, but maybe this was the wrong option."},"comment":{"url":"https://api.github.com/repos/wagtail/wagtail/issues/comments/369218716","html_url":"https://github.com/wagtail/wagtail/issues/4321#issuecomment-369218716","issue_url":"https://api.github.com/repos/wagtail/wagtail/issues/4321","id":369218716,"user":{"login":"stuaxo","id":179677,"avatar_url":"https://avatars1.githubusercontent.com/u/179677?v=4","gravatar_id":"","url":"https://api.github.com/users/stuaxo","html_url":"https://github.com/stuaxo","followers_url":"https://api.github.com/users/stuaxo/followers","following_url":"https://api.github.com/users/stuaxo/following{/other_user}","gists_url":"https://api.github.com/users/stuaxo/gists{/gist_id}","starred_url":"https://api.github.com/users/stuaxo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuaxo/subscriptions","organizations_url":"https://api.github.com/users/stuaxo/orgs","repos_url":"https://api.github.com/users/stuaxo/repos","events_url":"https://api.github.com/users/stuaxo/events{/privacy}","received_events_url":"https://api.github.com/users/stuaxo/received_events","type":"User","site_admin":false},"created_at":"2018-02-28T12:02:16Z","updated_at":"2018-02-28T12:02:16Z","author_association":"NONE","body":"Cheers for that, it was super helpful.\r\n\r\nIt missed that wagtail.contrib.wagtailapi is now wagtail.api\r\n\r\n\r\nI'm having a go at porting wagtail modeltranslations - any idea what has changed with ```get_form_class``` ?\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/home/stu/projects/external/wagtail-modeltranslation/wagtail_modeltranslation/tests/tests.py\", line 334, in test_snippet_form\r\n    form = snippet_edit_handler.get_form_class(models.InlinePanelSnippet)\r\nTypeError: get_form_class() takes 1 positional argument but 2 were given\r\n\r\n```"}}
{"actor":{"display_login":"stuaxo"}}