{"action":"created","comment":{"url":"https://api.github.com/repos/BirkbeckCTP/janeway/pulls/comments/237139851","pull_request_review_id":179365897,"id":237139851,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNzEzOTg1MQ==","diff_hunk":"@@ -33,6 +33,11 @@ def __init__(self, *args, **kwargs):\n         self.fields['competing_interests'].label = ''\n         self.fields['comments_editor'].label = ''\n \n+        try:\n+            journal.submissionconfiguration\n+        except models.SubmissionConfiguration.DoesNotExist:\n+            models.SubmissionConfiguration.objects.create(journal=journal)\n+","path":"src/submission/forms.py","position":8,"original_position":8,"commit_id":"e25d46b73040896f92b46a6d3ec1085e4ba2cc7e","original_commit_id":"e25d46b73040896f92b46a6d3ec1085e4ba2cc7e","user":{"login":"mauromsl","id":10760678,"node_id":"MDQ6VXNlcjEwNzYwNjc4","avatar_url":"https://avatars3.githubusercontent.com/u/10760678?v=4","gravatar_id":"","url":"https://api.github.com/users/mauromsl","html_url":"https://github.com/mauromsl","followers_url":"https://api.github.com/users/mauromsl/followers","following_url":"https://api.github.com/users/mauromsl/following{/other_user}","gists_url":"https://api.github.com/users/mauromsl/gists{/gist_id}","starred_url":"https://api.github.com/users/mauromsl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mauromsl/subscriptions","organizations_url":"https://api.github.com/users/mauromsl/orgs","repos_url":"https://api.github.com/users/mauromsl/repos","events_url":"https://api.github.com/users/mauromsl/events{/privacy}","received_events_url":"https://api.github.com/users/mauromsl/received_events","type":"User","site_admin":false},"body":"But this code will live here forever, shouldn't we have it on some sort of upgrade script/migration instead?","created_at":"2018-11-28T15:45:17Z","updated_at":"2018-11-28T15:48:05Z","html_url":"https://github.com/BirkbeckCTP/janeway/pull/677#discussion_r237139851","pull_request_url":"https://api.github.com/repos/BirkbeckCTP/janeway/pulls/677","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/BirkbeckCTP/janeway/pulls/comments/237139851"},"html":{"href":"https://github.com/BirkbeckCTP/janeway/pull/677#discussion_r237139851"},"pull_request":{"href":"https://api.github.com/repos/BirkbeckCTP/janeway/pulls/677"}},"in_reply_to_id":237137994},"pull_request":{"url":"https://api.github.com/repos/BirkbeckCTP/janeway/pulls/677","id":234321932,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM0MzIxOTMy","html_url":"https://github.com/BirkbeckCTP/janeway/pull/677","diff_url":"https://github.com/BirkbeckCTP/janeway/pull/677.diff","patch_url":"https://github.com/BirkbeckCTP/janeway/pull/677.patch","issue_url":"https://api.github.com/repos/BirkbeckCTP/janeway/issues/677","number":677,"state":"open","locked":false,"title":"Closes #676, adds a signal to create a congifuration for new journals…","user":{"login":"ajrbyers","id":8321378,"node_id":"MDQ6VXNlcjgzMjEzNzg=","avatar_url":"https://avatars1.githubusercontent.com/u/8321378?v=4","gravatar_id":"","url":"https://api.github.com/users/ajrbyers","html_url":"https://github.com/ajrbyers","followers_url":"https://api.github.com/users/ajrbyers/followers","following_url":"https://api.github.com/users/ajrbyers/following{/other_user}","gists_url":"https://api.github.com/users/ajrbyers/gists{/gist_id}","starred_url":"https://api.github.com/users/ajrbyers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajrbyers/subscriptions","organizations_url":"https://api.github.com/users/ajrbyers/orgs","repos_url":"https://api.github.com/users/ajrbyers/repos","events_url":"https://api.github.com/users/ajrbyers/events{/privacy}","received_events_url":"https://api.github.com/users/ajrbyers/received_events","type":"User","site_admin":false},"body":"… and handles those that are missing by creating defaults","created_at":"2018-11-28T15:35:56Z","updated_at":"2018-11-28T15:48:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"754c27700af37edb60a6b052370e95c1b235d4e1","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/BirkbeckCTP/janeway/pulls/677/commits","review_comments_url":"https://api.github.com/repos/BirkbeckCTP/janeway/pulls/677/comments","review_comment_url":"https://api.github.com/repos/BirkbeckCTP/janeway/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BirkbeckCTP/janeway/issues/677/comments","statuses_url":"https://api.github.com/repos/BirkbeckCTP/janeway/statuses/e25d46b73040896f92b46a6d3ec1085e4ba2cc7e","head":{"label":"BirkbeckCTP:678-Fix","ref":"678-Fix","sha":"e25d46b73040896f92b46a6d3ec1085e4ba2cc7e","user":{"login":"BirkbeckCTP","id":17926709,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3OTI2NzA5","avatar_url":"https://avatars0.githubusercontent.com/u/17926709?v=4","gravatar_id":"","url":"https://api.github.com/users/BirkbeckCTP","html_url":"https://github.com/BirkbeckCTP","followers_url":"https://api.github.com/users/BirkbeckCTP/followers","following_url":"https://api.github.com/users/BirkbeckCTP/following{/other_user}","gists_url":"https://api.github.com/users/BirkbeckCTP/gists{/gist_id}","starred_url":"https://api.github.com/users/BirkbeckCTP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BirkbeckCTP/subscriptions","organizations_url":"https://api.github.com/users/BirkbeckCTP/orgs","repos_url":"https://api.github.com/users/BirkbeckCTP/repos","events_url":"https://api.github.com/users/BirkbeckCTP/events{/privacy}","received_events_url":"https://api.github.com/users/BirkbeckCTP/received_events","type":"Organization","site_admin":false},"repo":{"id":96784832,"node_id":"MDEwOlJlcG9zaXRvcnk5Njc4NDgzMg==","name":"janeway","full_name":"BirkbeckCTP/janeway","private":false,"owner":{"login":"BirkbeckCTP","id":17926709,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3OTI2NzA5","avatar_url":"https://avatars0.githubusercontent.com/u/17926709?v=4","gravatar_id":"","url":"https://api.github.com/users/BirkbeckCTP","html_url":"https://github.com/BirkbeckCTP","followers_url":"https://api.github.com/users/BirkbeckCTP/followers","following_url":"https://api.github.com/users/BirkbeckCTP/following{/other_user}","gists_url":"https://api.github.com/users/BirkbeckCTP/gists{/gist_id}","starred_url":"https://api.github.com/users/BirkbeckCTP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BirkbeckCTP/subscriptions","organizations_url":"https://api.github.com/users/BirkbeckCTP/orgs","repos_url":"https://api.github.com/users/BirkbeckCTP/repos","events_url":"https://api.github.com/users/BirkbeckCTP/events{/privacy}","received_events_url":"https://api.github.com/users/BirkbeckCTP/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/BirkbeckCTP/janeway","description":"A journal management system designed for publishing scholarly articles.","fork":false,"url":"https://api.github.com/repos/BirkbeckCTP/janeway","forks_url":"https://api.github.com/repos/BirkbeckCTP/janeway/forks","keys_url":"https://api.github.com/repos/BirkbeckCTP/janeway/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BirkbeckCTP/janeway/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BirkbeckCTP/janeway/teams","hooks_url":"https://api.github.com/repos/BirkbeckCTP/janeway/hooks","issue_events_url":"https://api.github.com/repos/BirkbeckCTP/janeway/issues/events{/number}","events_url":"https://api.github.com/repos/BirkbeckCTP/janeway/events","assignees_url":"https://api.github.com/repos/BirkbeckCTP/janeway/assignees{/user}","branches_url":"https://api.github.com/repos/BirkbeckCTP/janeway/branches{/branch}","tags_url":"https://api.github.com/repos/BirkbeckCTP/janeway/tags","blobs_url":"https://api.github.com/repos/BirkbeckCTP/janeway/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BirkbeckCTP/janeway/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BirkbeckCTP/janeway/git/refs{/sha}","trees_url":"https://api.github.com/repos/BirkbeckCTP/janeway/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BirkbeckCTP/janeway/statuses/{sha}","languages_url":"https://api.github.com/repos/BirkbeckCTP/janeway/languages","stargazers_url":"https://api.github.com/repos/BirkbeckCTP/janeway/stargazers","contributors_url":"https://api.github.com/repos/BirkbeckCTP/janeway/contributors","subscribers_url":"https://api.github.com/repos/BirkbeckCTP/janeway/subscribers","subscription_url":"https://api.github.com/repos/BirkbeckCTP/janeway/subscription","commits_url":"https://api.github.com/repos/BirkbeckCTP/janeway/commits{/sha}","git_commits_url":"https://api.github.com/repos/BirkbeckCTP/janeway/git/commits{/sha}","comments_url":"https://api.github.com/repos/BirkbeckCTP/janeway/comments{/number}","issue_comment_url":"https://api.github.com/repos/BirkbeckCTP/janeway/issues/comments{/number}","contents_url":"https://api.github.com/repos/BirkbeckCTP/janeway/contents/{+path}","compare_url":"https://api.github.com/repos/BirkbeckCTP/janeway/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BirkbeckCTP/janeway/merges","archive_url":"https://api.github.com/repos/BirkbeckCTP/janeway/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BirkbeckCTP/janeway/downloads","issues_url":"https://api.github.com/repos/BirkbeckCTP/janeway/issues{/number}","pulls_url":"https://api.github.com/repos/BirkbeckCTP/janeway/pulls{/number}","milestones_url":"https://api.github.com/repos/BirkbeckCTP/janeway/milestones{/number}","notifications_url":"https://api.github.com/repos/BirkbeckCTP/janeway/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BirkbeckCTP/janeway/labels{/name}","releases_url":"https://api.github.com/repos/BirkbeckCTP/janeway/releases{/id}","deployments_url":"https://api.github.com/repos/BirkbeckCTP/janeway/deployments","created_at":"2017-07-10T14:08:53Z","updated_at":"2018-11-26T16:03:29Z","pushed_at":"2018-11-28T15:35:56Z","git_url":"git://github.com/BirkbeckCTP/janeway.git","ssh_url":"git@github.com:BirkbeckCTP/janeway.git","clone_url":"https://github.com/BirkbeckCTP/janeway.git","svn_url":"https://github.com/BirkbeckCTP/janeway","homepage":"","size":23332,"stargazers_count":63,"watchers_count":63,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"archived":false,"open_issues_count":123,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":18,"open_issues":123,"watchers":63,"default_branch":"master"}},"base":{"label":"BirkbeckCTP:1.3.2","ref":"1.3.2","sha":"7bf760a33a68169a5a7a1932baaf9c8c2d6f85b5","user":{"login":"BirkbeckCTP","id":17926709,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3OTI2NzA5","avatar_url":"https://avatars0.githubusercontent.com/u/17926709?v=4","gravatar_id":"","url":"https://api.github.com/users/BirkbeckCTP","html_url":"https://github.com/BirkbeckCTP","followers_url":"https://api.github.com/users/BirkbeckCTP/followers","following_url":"https://api.github.com/users/BirkbeckCTP/following{/other_user}","gists_url":"https://api.github.com/users/BirkbeckCTP/gists{/gist_id}","starred_url":"https://api.github.com/users/BirkbeckCTP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BirkbeckCTP/subscriptions","organizations_url":"https://api.github.com/users/BirkbeckCTP/orgs","repos_url":"https://api.github.com/users/BirkbeckCTP/repos","events_url":"https://api.github.com/users/BirkbeckCTP/events{/privacy}","received_events_url":"https://api.github.com/users/BirkbeckCTP/received_events","type":"Organization","site_admin":false},"repo":{"id":96784832,"node_id":"MDEwOlJlcG9zaXRvcnk5Njc4NDgzMg==","name":"janeway","full_name":"BirkbeckCTP/janeway","private":false,"owner":{"login":"BirkbeckCTP","id":17926709,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3OTI2NzA5","avatar_url":"https://avatars0.githubusercontent.com/u/17926709?v=4","gravatar_id":"","url":"https://api.github.com/users/BirkbeckCTP","html_url":"https://github.com/BirkbeckCTP","followers_url":"https://api.github.com/users/BirkbeckCTP/followers","following_url":"https://api.github.com/users/BirkbeckCTP/following{/other_user}","gists_url":"https://api.github.com/users/BirkbeckCTP/gists{/gist_id}","starred_url":"https://api.github.com/users/BirkbeckCTP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BirkbeckCTP/subscriptions","organizations_url":"https://api.github.com/users/BirkbeckCTP/orgs","repos_url":"https://api.github.com/users/BirkbeckCTP/repos","events_url":"https://api.github.com/users/BirkbeckCTP/events{/privacy}","received_events_url":"https://api.github.com/users/BirkbeckCTP/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/BirkbeckCTP/janeway","description":"A journal management system designed for publishing scholarly articles.","fork":false,"url":"https://api.github.com/repos/BirkbeckCTP/janeway","forks_url":"https://api.github.com/repos/BirkbeckCTP/janeway/forks","keys_url":"https://api.github.com/repos/BirkbeckCTP/janeway/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BirkbeckCTP/janeway/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BirkbeckCTP/janeway/teams","hooks_url":"https://api.github.com/repos/BirkbeckCTP/janeway/hooks","issue_events_url":"https://api.github.com/repos/BirkbeckCTP/janeway/issues/events{/number}","events_url":"https://api.github.com/repos/BirkbeckCTP/janeway/events","assignees_url":"https://api.github.com/repos/BirkbeckCTP/janeway/assignees{/user}","branches_url":"https://api.github.com/repos/BirkbeckCTP/janeway/branches{/branch}","tags_url":"https://api.github.com/repos/BirkbeckCTP/janeway/tags","blobs_url":"https://api.github.com/repos/BirkbeckCTP/janeway/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BirkbeckCTP/janeway/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BirkbeckCTP/janeway/git/refs{/sha}","trees_url":"https://api.github.com/repos/BirkbeckCTP/janeway/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BirkbeckCTP/janeway/statuses/{sha}","languages_url":"https://api.github.com/repos/BirkbeckCTP/janeway/languages","stargazers_url":"https://api.github.com/repos/BirkbeckCTP/janeway/stargazers","contributors_url":"https://api.github.com/repos/BirkbeckCTP/janeway/contributors","subscribers_url":"https://api.github.com/repos/BirkbeckCTP/janeway/subscribers","subscription_url":"https://api.github.com/repos/BirkbeckCTP/janeway/subscription","commits_url":"https://api.github.com/repos/BirkbeckCTP/janeway/commits{/sha}","git_commits_url":"https://api.github.com/repos/BirkbeckCTP/janeway/git/commits{/sha}","comments_url":"https://api.github.com/repos/BirkbeckCTP/janeway/comments{/number}","issue_comment_url":"https://api.github.com/repos/BirkbeckCTP/janeway/issues/comments{/number}","contents_url":"https://api.github.com/repos/BirkbeckCTP/janeway/contents/{+path}","compare_url":"https://api.github.com/repos/BirkbeckCTP/janeway/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BirkbeckCTP/janeway/merges","archive_url":"https://api.github.com/repos/BirkbeckCTP/janeway/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BirkbeckCTP/janeway/downloads","issues_url":"https://api.github.com/repos/BirkbeckCTP/janeway/issues{/number}","pulls_url":"https://api.github.com/repos/BirkbeckCTP/janeway/pulls{/number}","milestones_url":"https://api.github.com/repos/BirkbeckCTP/janeway/milestones{/number}","notifications_url":"https://api.github.com/repos/BirkbeckCTP/janeway/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BirkbeckCTP/janeway/labels{/name}","releases_url":"https://api.github.com/repos/BirkbeckCTP/janeway/releases{/id}","deployments_url":"https://api.github.com/repos/BirkbeckCTP/janeway/deployments","created_at":"2017-07-10T14:08:53Z","updated_at":"2018-11-26T16:03:29Z","pushed_at":"2018-11-28T15:35:56Z","git_url":"git://github.com/BirkbeckCTP/janeway.git","ssh_url":"git@github.com:BirkbeckCTP/janeway.git","clone_url":"https://github.com/BirkbeckCTP/janeway.git","svn_url":"https://github.com/BirkbeckCTP/janeway","homepage":"","size":23332,"stargazers_count":63,"watchers_count":63,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"archived":false,"open_issues_count":123,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":18,"open_issues":123,"watchers":63,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BirkbeckCTP/janeway/pulls/677"},"html":{"href":"https://github.com/BirkbeckCTP/janeway/pull/677"},"issue":{"href":"https://api.github.com/repos/BirkbeckCTP/janeway/issues/677"},"comments":{"href":"https://api.github.com/repos/BirkbeckCTP/janeway/issues/677/comments"},"review_comments":{"href":"https://api.github.com/repos/BirkbeckCTP/janeway/pulls/677/comments"},"review_comment":{"href":"https://api.github.com/repos/BirkbeckCTP/janeway/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BirkbeckCTP/janeway/pulls/677/commits"},"statuses":{"href":"https://api.github.com/repos/BirkbeckCTP/janeway/statuses/e25d46b73040896f92b46a6d3ec1085e4ba2cc7e"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"mauromsl"}}