{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/marketpulse/pulls/comments/25059884","id":25059884,"diff_hunk":"@@ -41,32 +42,29 @@ def __unicode__(self):\n         return '{0}, {1}'.format(self.shop_name, self.country)\n \n \n-class Plan(models.Model):\n-    \"\"\"Mobile phone plan information.\"\"\"\n-\n-    has_plan = models.BooleanField(default=False)\n-    duration = models.IntegerField(default=None)\n-    description = models.TextField(default='', blank=True)\n-\n-\n class Contribution(models.Model):\n     \"\"\"Model for contribution data.\"\"\"\n \n     user = models.ForeignKey(settings.AUTH_USER_MODEL, related_name='contributions')\n     activity = models.ForeignKey(Activity, related_name='contributions')\n-    location = models.ForeignKey(Location, related_name='contributions')\n-    device = models.ForeignKey(Device, related_name='contributions')\n+    location = models.ForeignKey(Location, related_name='contributions', null=True)","path":"marketpulse/main/models.py","position":27,"original_position":27,"commit_id":"8a4c4165453e0f4835401c92e902fdd8a93ceee4","original_commit_id":"aad5ee4c0fd2f607c19f2b9d10651e8ed1385b5a","user":{"login":"akatsoulas","id":900565,"avatar_url":"https://avatars.githubusercontent.com/u/900565?v=3","gravatar_id":"","url":"https://api.github.com/users/akatsoulas","html_url":"https://github.com/akatsoulas","followers_url":"https://api.github.com/users/akatsoulas/followers","following_url":"https://api.github.com/users/akatsoulas/following{/other_user}","gists_url":"https://api.github.com/users/akatsoulas/gists{/gist_id}","starred_url":"https://api.github.com/users/akatsoulas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akatsoulas/subscriptions","organizations_url":"https://api.github.com/users/akatsoulas/orgs","repos_url":"https://api.github.com/users/akatsoulas/repos","events_url":"https://api.github.com/users/akatsoulas/events{/privacy}","received_events_url":"https://api.github.com/users/akatsoulas/received_events","type":"User","site_admin":false},"body":"This is for the same reason with the `contribution` foreign key. If we don't, then a data migration is on the way for a default value. Compared to the contribution field, a data migration for this case, is much easier though. Thoughts?","created_at":"2015-02-20T09:57:27Z","updated_at":"2015-02-20T09:57:27Z","html_url":"https://github.com/mozilla/marketpulse/pull/56#discussion_r25059884","pull_request_url":"https://api.github.com/repos/mozilla/marketpulse/pulls/56","_links":{"self":{"href":"https://api.github.com/repos/mozilla/marketpulse/pulls/comments/25059884"},"html":{"href":"https://github.com/mozilla/marketpulse/pull/56#discussion_r25059884"},"pull_request":{"href":"https://api.github.com/repos/mozilla/marketpulse/pulls/56"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/marketpulse/pulls/56","id":29643301,"html_url":"https://github.com/mozilla/marketpulse/pull/56","diff_url":"https://github.com/mozilla/marketpulse/pull/56.diff","patch_url":"https://github.com/mozilla/marketpulse/pull/56.patch","issue_url":"https://api.github.com/repos/mozilla/marketpulse/issues/56","number":56,"state":"open","locked":false,"title":"Dynamic formsets","user":{"login":"akatsoulas","id":900565,"avatar_url":"https://avatars.githubusercontent.com/u/900565?v=3","gravatar_id":"","url":"https://api.github.com/users/akatsoulas","html_url":"https://github.com/akatsoulas","followers_url":"https://api.github.com/users/akatsoulas/followers","following_url":"https://api.github.com/users/akatsoulas/following{/other_user}","gists_url":"https://api.github.com/users/akatsoulas/gists{/gist_id}","starred_url":"https://api.github.com/users/akatsoulas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akatsoulas/subscriptions","organizations_url":"https://api.github.com/users/akatsoulas/orgs","repos_url":"https://api.github.com/users/akatsoulas/repos","events_url":"https://api.github.com/users/akatsoulas/events{/privacy}","received_events_url":"https://api.github.com/users/akatsoulas/received_events","type":"User","site_admin":false},"body":"\r\n\r\n<!---\r\n@huboard:{\"order\":28.5,\"milestone_order\":56,\"custom_state\":\"\"}\n-->\r\n","created_at":"2015-02-19T19:56:03Z","updated_at":"2015-02-20T09:57:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a188a0f5ca2055a5399e8d5f47d5a09580f8f7cd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/marketpulse/pulls/56/commits","review_comments_url":"https://api.github.com/repos/mozilla/marketpulse/pulls/56/comments","review_comment_url":"https://api.github.com/repos/mozilla/marketpulse/pulls/comments/{number}","comments_url":"https://api.github.com/repos/mozilla/marketpulse/issues/56/comments","statuses_url":"https://api.github.com/repos/mozilla/marketpulse/statuses/8a4c4165453e0f4835401c92e902fdd8a93ceee4","head":{"label":"akatsoulas:dynamic-formsets","ref":"dynamic-formsets","sha":"8a4c4165453e0f4835401c92e902fdd8a93ceee4","user":{"login":"akatsoulas","id":900565,"avatar_url":"https://avatars.githubusercontent.com/u/900565?v=3","gravatar_id":"","url":"https://api.github.com/users/akatsoulas","html_url":"https://github.com/akatsoulas","followers_url":"https://api.github.com/users/akatsoulas/followers","following_url":"https://api.github.com/users/akatsoulas/following{/other_user}","gists_url":"https://api.github.com/users/akatsoulas/gists{/gist_id}","starred_url":"https://api.github.com/users/akatsoulas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akatsoulas/subscriptions","organizations_url":"https://api.github.com/users/akatsoulas/orgs","repos_url":"https://api.github.com/users/akatsoulas/repos","events_url":"https://api.github.com/users/akatsoulas/events{/privacy}","received_events_url":"https://api.github.com/users/akatsoulas/received_events","type":"User","site_admin":false},"repo":{"id":30364485,"name":"marketpulse","full_name":"akatsoulas/marketpulse","owner":{"login":"akatsoulas","id":900565,"avatar_url":"https://avatars.githubusercontent.com/u/900565?v=3","gravatar_id":"","url":"https://api.github.com/users/akatsoulas","html_url":"https://github.com/akatsoulas","followers_url":"https://api.github.com/users/akatsoulas/followers","following_url":"https://api.github.com/users/akatsoulas/following{/other_user}","gists_url":"https://api.github.com/users/akatsoulas/gists{/gist_id}","starred_url":"https://api.github.com/users/akatsoulas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akatsoulas/subscriptions","organizations_url":"https://api.github.com/users/akatsoulas/orgs","repos_url":"https://api.github.com/users/akatsoulas/repos","events_url":"https://api.github.com/users/akatsoulas/events{/privacy}","received_events_url":"https://api.github.com/users/akatsoulas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/akatsoulas/marketpulse","description":"Market Pulse contribution app","fork":true,"url":"https://api.github.com/repos/akatsoulas/marketpulse","forks_url":"https://api.github.com/repos/akatsoulas/marketpulse/forks","keys_url":"https://api.github.com/repos/akatsoulas/marketpulse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akatsoulas/marketpulse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akatsoulas/marketpulse/teams","hooks_url":"https://api.github.com/repos/akatsoulas/marketpulse/hooks","issue_events_url":"https://api.github.com/repos/akatsoulas/marketpulse/issues/events{/number}","events_url":"https://api.github.com/repos/akatsoulas/marketpulse/events","assignees_url":"https://api.github.com/repos/akatsoulas/marketpulse/assignees{/user}","branches_url":"https://api.github.com/repos/akatsoulas/marketpulse/branches{/branch}","tags_url":"https://api.github.com/repos/akatsoulas/marketpulse/tags","blobs_url":"https://api.github.com/repos/akatsoulas/marketpulse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akatsoulas/marketpulse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akatsoulas/marketpulse/git/refs{/sha}","trees_url":"https://api.github.com/repos/akatsoulas/marketpulse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akatsoulas/marketpulse/statuses/{sha}","languages_url":"https://api.github.com/repos/akatsoulas/marketpulse/languages","stargazers_url":"https://api.github.com/repos/akatsoulas/marketpulse/stargazers","contributors_url":"https://api.github.com/repos/akatsoulas/marketpulse/contributors","subscribers_url":"https://api.github.com/repos/akatsoulas/marketpulse/subscribers","subscription_url":"https://api.github.com/repos/akatsoulas/marketpulse/subscription","commits_url":"https://api.github.com/repos/akatsoulas/marketpulse/commits{/sha}","git_commits_url":"https://api.github.com/repos/akatsoulas/marketpulse/git/commits{/sha}","comments_url":"https://api.github.com/repos/akatsoulas/marketpulse/comments{/number}","issue_comment_url":"https://api.github.com/repos/akatsoulas/marketpulse/issues/comments/{number}","contents_url":"https://api.github.com/repos/akatsoulas/marketpulse/contents/{+path}","compare_url":"https://api.github.com/repos/akatsoulas/marketpulse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akatsoulas/marketpulse/merges","archive_url":"https://api.github.com/repos/akatsoulas/marketpulse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akatsoulas/marketpulse/downloads","issues_url":"https://api.github.com/repos/akatsoulas/marketpulse/issues{/number}","pulls_url":"https://api.github.com/repos/akatsoulas/marketpulse/pulls{/number}","milestones_url":"https://api.github.com/repos/akatsoulas/marketpulse/milestones{/number}","notifications_url":"https://api.github.com/repos/akatsoulas/marketpulse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akatsoulas/marketpulse/labels{/name}","releases_url":"https://api.github.com/repos/akatsoulas/marketpulse/releases{/id}","created_at":"2015-02-05T16:07:04Z","updated_at":"2015-02-19T13:33:00Z","pushed_at":"2015-02-20T09:50:24Z","git_url":"git://github.com/akatsoulas/marketpulse.git","ssh_url":"git@github.com:akatsoulas/marketpulse.git","clone_url":"https://github.com/akatsoulas/marketpulse.git","svn_url":"https://github.com/akatsoulas/marketpulse","homepage":null,"size":3341,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"422589c321bae19fea7042476c0bc76768acfc7e","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":30363756,"name":"marketpulse","full_name":"mozilla/marketpulse","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/marketpulse","description":"Market Pulse contribution app","fork":false,"url":"https://api.github.com/repos/mozilla/marketpulse","forks_url":"https://api.github.com/repos/mozilla/marketpulse/forks","keys_url":"https://api.github.com/repos/mozilla/marketpulse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/marketpulse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/marketpulse/teams","hooks_url":"https://api.github.com/repos/mozilla/marketpulse/hooks","issue_events_url":"https://api.github.com/repos/mozilla/marketpulse/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/marketpulse/events","assignees_url":"https://api.github.com/repos/mozilla/marketpulse/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/marketpulse/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/marketpulse/tags","blobs_url":"https://api.github.com/repos/mozilla/marketpulse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/marketpulse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/marketpulse/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/marketpulse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/marketpulse/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/marketpulse/languages","stargazers_url":"https://api.github.com/repos/mozilla/marketpulse/stargazers","contributors_url":"https://api.github.com/repos/mozilla/marketpulse/contributors","subscribers_url":"https://api.github.com/repos/mozilla/marketpulse/subscribers","subscription_url":"https://api.github.com/repos/mozilla/marketpulse/subscription","commits_url":"https://api.github.com/repos/mozilla/marketpulse/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/marketpulse/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/marketpulse/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/marketpulse/issues/comments/{number}","contents_url":"https://api.github.com/repos/mozilla/marketpulse/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/marketpulse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/marketpulse/merges","archive_url":"https://api.github.com/repos/mozilla/marketpulse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/marketpulse/downloads","issues_url":"https://api.github.com/repos/mozilla/marketpulse/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/marketpulse/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/marketpulse/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/marketpulse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/marketpulse/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/marketpulse/releases{/id}","created_at":"2015-02-05T15:52:17Z","updated_at":"2015-02-20T09:40:12Z","pushed_at":"2015-02-20T09:40:11Z","git_url":"git://github.com/mozilla/marketpulse.git","ssh_url":"git@github.com:mozilla/marketpulse.git","clone_url":"https://github.com/mozilla/marketpulse.git","svn_url":"https://github.com/mozilla/marketpulse","homepage":null,"size":3754,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":9,"forks":5,"open_issues":9,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/marketpulse/pulls/56"},"html":{"href":"https://github.com/mozilla/marketpulse/pull/56"},"issue":{"href":"https://api.github.com/repos/mozilla/marketpulse/issues/56"},"comments":{"href":"https://api.github.com/repos/mozilla/marketpulse/issues/56/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/marketpulse/pulls/56/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/marketpulse/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/mozilla/marketpulse/pulls/56/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/marketpulse/statuses/8a4c4165453e0f4835401c92e902fdd8a93ceee4"}}}}