{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/airmozilla/pulls/comments/25275735","id":25275735,"diff_hunk":"@@ -0,0 +1,12 @@\n+from django.core.cache import cache\n+from django.db import models\n+from django.contrib.auth.models import User\n+from airmozilla.main.models import Event\n+\n+\n+class StarredEvent(models.Model):\n+    event = models.ForeignKey(Event)\n+    user = models.ForeignKey(User)\n+    created = models.DateTimeField(auto_now_add=True)\n+","path":"airmozilla/starred/models.py","position":11,"original_position":11,"commit_id":"7806fd507e94e0829244a23b8682773e2bdc5a57","original_commit_id":"7806fd507e94e0829244a23b8682773e2bdc5a57","user":{"login":"peterbe","id":26739,"avatar_url":"https://avatars.githubusercontent.com/u/26739?v=3","gravatar_id":"","url":"https://api.github.com/users/peterbe","html_url":"https://github.com/peterbe","followers_url":"https://api.github.com/users/peterbe/followers","following_url":"https://api.github.com/users/peterbe/following{/other_user}","gists_url":"https://api.github.com/users/peterbe/gists{/gist_id}","starred_url":"https://api.github.com/users/peterbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterbe/subscriptions","organizations_url":"https://api.github.com/users/peterbe/orgs","repos_url":"https://api.github.com/users/peterbe/repos","events_url":"https://api.github.com/users/peterbe/events{/privacy}","received_events_url":"https://api.github.com/users/peterbe/received_events","type":"User","site_admin":false},"body":"We should put up an additional guard that prevents there from ever existing duplicates here that only differ in their `created` value. Check out the django documentation on how to use `unique_together` in a `Meta` class on the model. ","created_at":"2015-02-24T18:08:15Z","updated_at":"2015-02-24T18:08:15Z","html_url":"https://github.com/mozilla/airmozilla/pull/195#discussion_r25275735","pull_request_url":"https://api.github.com/repos/mozilla/airmozilla/pulls/195","_links":{"self":{"href":"https://api.github.com/repos/mozilla/airmozilla/pulls/comments/25275735"},"html":{"href":"https://github.com/mozilla/airmozilla/pull/195#discussion_r25275735"},"pull_request":{"href":"https://api.github.com/repos/mozilla/airmozilla/pulls/195"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/airmozilla/pulls/195","id":28943175,"html_url":"https://github.com/mozilla/airmozilla/pull/195","diff_url":"https://github.com/mozilla/airmozilla/pull/195.diff","patch_url":"https://github.com/mozilla/airmozilla/pull/195.patch","issue_url":"https://api.github.com/repos/mozilla/airmozilla/issues/195","number":195,"state":"open","locked":false,"title":"Bug 1089713 - Unfinished push for review and comments","user":{"login":"bugzPDX","id":5467031,"avatar_url":"https://avatars.githubusercontent.com/u/5467031?v=3","gravatar_id":"","url":"https://api.github.com/users/bugzPDX","html_url":"https://github.com/bugzPDX","followers_url":"https://api.github.com/users/bugzPDX/followers","following_url":"https://api.github.com/users/bugzPDX/following{/other_user}","gists_url":"https://api.github.com/users/bugzPDX/gists{/gist_id}","starred_url":"https://api.github.com/users/bugzPDX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bugzPDX/subscriptions","organizations_url":"https://api.github.com/users/bugzPDX/orgs","repos_url":"https://api.github.com/users/bugzPDX/repos","events_url":"https://api.github.com/users/bugzPDX/events{/privacy}","received_events_url":"https://api.github.com/users/bugzPDX/received_events","type":"User","site_admin":false},"body":"I will change the name of test_starred.py to test_views.py to match the library naming convention once it's closer to being complete.","created_at":"2015-02-09T18:12:42Z","updated_at":"2015-02-24T18:08:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6e99575a2ef6a058ec0dc8b277be970b902f52e9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/airmozilla/pulls/195/commits","review_comments_url":"https://api.github.com/repos/mozilla/airmozilla/pulls/195/comments","review_comment_url":"https://api.github.com/repos/mozilla/airmozilla/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/airmozilla/issues/195/comments","statuses_url":"https://api.github.com/repos/mozilla/airmozilla/statuses/7806fd507e94e0829244a23b8682773e2bdc5a57","head":{"label":"bugzPDX:1089713","ref":"1089713","sha":"7806fd507e94e0829244a23b8682773e2bdc5a57","user":{"login":"bugzPDX","id":5467031,"avatar_url":"https://avatars.githubusercontent.com/u/5467031?v=3","gravatar_id":"","url":"https://api.github.com/users/bugzPDX","html_url":"https://github.com/bugzPDX","followers_url":"https://api.github.com/users/bugzPDX/followers","following_url":"https://api.github.com/users/bugzPDX/following{/other_user}","gists_url":"https://api.github.com/users/bugzPDX/gists{/gist_id}","starred_url":"https://api.github.com/users/bugzPDX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bugzPDX/subscriptions","organizations_url":"https://api.github.com/users/bugzPDX/orgs","repos_url":"https://api.github.com/users/bugzPDX/repos","events_url":"https://api.github.com/users/bugzPDX/events{/privacy}","received_events_url":"https://api.github.com/users/bugzPDX/received_events","type":"User","site_admin":false},"repo":{"id":25278058,"name":"airmozilla","full_name":"bugzPDX/airmozilla","owner":{"login":"bugzPDX","id":5467031,"avatar_url":"https://avatars.githubusercontent.com/u/5467031?v=3","gravatar_id":"","url":"https://api.github.com/users/bugzPDX","html_url":"https://github.com/bugzPDX","followers_url":"https://api.github.com/users/bugzPDX/followers","following_url":"https://api.github.com/users/bugzPDX/following{/other_user}","gists_url":"https://api.github.com/users/bugzPDX/gists{/gist_id}","starred_url":"https://api.github.com/users/bugzPDX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bugzPDX/subscriptions","organizations_url":"https://api.github.com/users/bugzPDX/orgs","repos_url":"https://api.github.com/users/bugzPDX/repos","events_url":"https://api.github.com/users/bugzPDX/events{/privacy}","received_events_url":"https://api.github.com/users/bugzPDX/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bugzPDX/airmozilla","description":"AirMozilla is a the video broadcasting site for the Mozilla project","fork":true,"url":"https://api.github.com/repos/bugzPDX/airmozilla","forks_url":"https://api.github.com/repos/bugzPDX/airmozilla/forks","keys_url":"https://api.github.com/repos/bugzPDX/airmozilla/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bugzPDX/airmozilla/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bugzPDX/airmozilla/teams","hooks_url":"https://api.github.com/repos/bugzPDX/airmozilla/hooks","issue_events_url":"https://api.github.com/repos/bugzPDX/airmozilla/issues/events{/number}","events_url":"https://api.github.com/repos/bugzPDX/airmozilla/events","assignees_url":"https://api.github.com/repos/bugzPDX/airmozilla/assignees{/user}","branches_url":"https://api.github.com/repos/bugzPDX/airmozilla/branches{/branch}","tags_url":"https://api.github.com/repos/bugzPDX/airmozilla/tags","blobs_url":"https://api.github.com/repos/bugzPDX/airmozilla/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bugzPDX/airmozilla/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bugzPDX/airmozilla/git/refs{/sha}","trees_url":"https://api.github.com/repos/bugzPDX/airmozilla/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bugzPDX/airmozilla/statuses/{sha}","languages_url":"https://api.github.com/repos/bugzPDX/airmozilla/languages","stargazers_url":"https://api.github.com/repos/bugzPDX/airmozilla/stargazers","contributors_url":"https://api.github.com/repos/bugzPDX/airmozilla/contributors","subscribers_url":"https://api.github.com/repos/bugzPDX/airmozilla/subscribers","subscription_url":"https://api.github.com/repos/bugzPDX/airmozilla/subscription","commits_url":"https://api.github.com/repos/bugzPDX/airmozilla/commits{/sha}","git_commits_url":"https://api.github.com/repos/bugzPDX/airmozilla/git/commits{/sha}","comments_url":"https://api.github.com/repos/bugzPDX/airmozilla/comments{/number}","issue_comment_url":"https://api.github.com/repos/bugzPDX/airmozilla/issues/comments{/number}","contents_url":"https://api.github.com/repos/bugzPDX/airmozilla/contents/{+path}","compare_url":"https://api.github.com/repos/bugzPDX/airmozilla/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bugzPDX/airmozilla/merges","archive_url":"https://api.github.com/repos/bugzPDX/airmozilla/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bugzPDX/airmozilla/downloads","issues_url":"https://api.github.com/repos/bugzPDX/airmozilla/issues{/number}","pulls_url":"https://api.github.com/repos/bugzPDX/airmozilla/pulls{/number}","milestones_url":"https://api.github.com/repos/bugzPDX/airmozilla/milestones{/number}","notifications_url":"https://api.github.com/repos/bugzPDX/airmozilla/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bugzPDX/airmozilla/labels{/name}","releases_url":"https://api.github.com/repos/bugzPDX/airmozilla/releases{/id}","created_at":"2014-10-15T23:33:18Z","updated_at":"2014-10-13T22:25:40Z","pushed_at":"2015-02-21T18:10:46Z","git_url":"git://github.com/bugzPDX/airmozilla.git","ssh_url":"git@github.com:bugzPDX/airmozilla.git","clone_url":"https://github.com/bugzPDX/airmozilla.git","svn_url":"https://github.com/bugzPDX/airmozilla","homepage":"https://air.mozilla.org","size":8829,"stargazers_count":0,"watchers_count":0,"language":null,"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":"9cf478b028c772a5ee79a64a3517547272307dfb","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":4588705,"name":"airmozilla","full_name":"mozilla/airmozilla","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/airmozilla","description":"AirMozilla is a the video broadcasting site for the Mozilla project","fork":false,"url":"https://api.github.com/repos/mozilla/airmozilla","forks_url":"https://api.github.com/repos/mozilla/airmozilla/forks","keys_url":"https://api.github.com/repos/mozilla/airmozilla/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/airmozilla/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/airmozilla/teams","hooks_url":"https://api.github.com/repos/mozilla/airmozilla/hooks","issue_events_url":"https://api.github.com/repos/mozilla/airmozilla/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/airmozilla/events","assignees_url":"https://api.github.com/repos/mozilla/airmozilla/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/airmozilla/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/airmozilla/tags","blobs_url":"https://api.github.com/repos/mozilla/airmozilla/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/airmozilla/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/airmozilla/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/airmozilla/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/airmozilla/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/airmozilla/languages","stargazers_url":"https://api.github.com/repos/mozilla/airmozilla/stargazers","contributors_url":"https://api.github.com/repos/mozilla/airmozilla/contributors","subscribers_url":"https://api.github.com/repos/mozilla/airmozilla/subscribers","subscription_url":"https://api.github.com/repos/mozilla/airmozilla/subscription","commits_url":"https://api.github.com/repos/mozilla/airmozilla/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/airmozilla/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/airmozilla/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/airmozilla/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/airmozilla/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/airmozilla/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/airmozilla/merges","archive_url":"https://api.github.com/repos/mozilla/airmozilla/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/airmozilla/downloads","issues_url":"https://api.github.com/repos/mozilla/airmozilla/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/airmozilla/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/airmozilla/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/airmozilla/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/airmozilla/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/airmozilla/releases{/id}","created_at":"2012-06-07T18:19:43Z","updated_at":"2015-02-24T00:31:14Z","pushed_at":"2015-02-24T00:31:14Z","git_url":"git://github.com/mozilla/airmozilla.git","ssh_url":"git@github.com:mozilla/airmozilla.git","clone_url":"https://github.com/mozilla/airmozilla.git","svn_url":"https://github.com/mozilla/airmozilla","homepage":"https://air.mozilla.org","size":12673,"stargazers_count":44,"watchers_count":44,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":35,"mirror_url":null,"open_issues_count":9,"forks":35,"open_issues":9,"watchers":44,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/airmozilla/pulls/195"},"html":{"href":"https://github.com/mozilla/airmozilla/pull/195"},"issue":{"href":"https://api.github.com/repos/mozilla/airmozilla/issues/195"},"comments":{"href":"https://api.github.com/repos/mozilla/airmozilla/issues/195/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/airmozilla/pulls/195/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/airmozilla/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/airmozilla/pulls/195/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/airmozilla/statuses/7806fd507e94e0829244a23b8682773e2bdc5a57"}}}}