{"action":"created","comment":{"url":"https://api.github.com/repos/django/djangoproject.com/pulls/comments/36187456","id":36187456,"diff_hunk":"@@ -96,3 +99,23 @@ def test_no_past_upcoming_events(self):\n         response = self.client.get(reverse('weblog:index'))\n         self.assertEqual(response.status_code, 200)\n         self.assertQuerysetEqual(response.context['events'], [])\n+\n+\n+class FormTests(TestCase):\n+    def setUp(self):\n+        incorrect_rst = '`link you say_'\n+        self.data = {\n+            'headline': 'TestEntry',\n+            'slug': 'testentry',\n+            'content_format': 'reST',\n+            'summary': incorrect_rst,\n+            'body': incorrect_rst,\n+            'pub_date': now(),\n+            'author': 'Django developer',\n+        }\n+\n+    def test_validation_of_rst(self):\n+        form = EntryForm(self.data)\n+        self.assertFalse(form.is_valid())\n+        self.assertIn('summary', form.errors)","path":"blog/tests.py","position":null,"original_position":36,"commit_id":"262b9486be2974cf50c37516cceb5dfe1666b1ae","original_commit_id":"4c0d4f79fed9f4bc873092e2df018f1301f8b15b","user":{"login":"relekang","id":476364,"avatar_url":"https://avatars.githubusercontent.com/u/476364?v=3","gravatar_id":"","url":"https://api.github.com/users/relekang","html_url":"https://github.com/relekang","followers_url":"https://api.github.com/users/relekang/followers","following_url":"https://api.github.com/users/relekang/following{/other_user}","gists_url":"https://api.github.com/users/relekang/gists{/gist_id}","starred_url":"https://api.github.com/users/relekang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/relekang/subscriptions","organizations_url":"https://api.github.com/users/relekang/orgs","repos_url":"https://api.github.com/users/relekang/repos","events_url":"https://api.github.com/users/relekang/events{/privacy}","received_events_url":"https://api.github.com/users/relekang/received_events","type":"User","site_admin":false},"body":"Added it","created_at":"2015-08-04T13:34:27Z","updated_at":"2015-08-04T13:34:27Z","html_url":"https://github.com/django/djangoproject.com/pull/507#discussion_r36187456","pull_request_url":"https://api.github.com/repos/django/djangoproject.com/pulls/507","_links":{"self":{"href":"https://api.github.com/repos/django/djangoproject.com/pulls/comments/36187456"},"html":{"href":"https://github.com/django/djangoproject.com/pull/507#discussion_r36187456"},"pull_request":{"href":"https://api.github.com/repos/django/djangoproject.com/pulls/507"}}},"pull_request":{"url":"https://api.github.com/repos/django/djangoproject.com/pulls/507","id":41559526,"html_url":"https://github.com/django/djangoproject.com/pull/507","diff_url":"https://github.com/django/djangoproject.com/pull/507.diff","patch_url":"https://github.com/django/djangoproject.com/pull/507.patch","issue_url":"https://api.github.com/repos/django/djangoproject.com/issues/507","number":507,"state":"open","locked":false,"title":"Fix #469, Add validation of reST fields in blog entry","user":{"login":"relekang","id":476364,"avatar_url":"https://avatars.githubusercontent.com/u/476364?v=3","gravatar_id":"","url":"https://api.github.com/users/relekang","html_url":"https://github.com/relekang","followers_url":"https://api.github.com/users/relekang/followers","following_url":"https://api.github.com/users/relekang/following{/other_user}","gists_url":"https://api.github.com/users/relekang/gists{/gist_id}","starred_url":"https://api.github.com/users/relekang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/relekang/subscriptions","organizations_url":"https://api.github.com/users/relekang/orgs","repos_url":"https://api.github.com/users/relekang/repos","events_url":"https://api.github.com/users/relekang/events{/privacy}","received_events_url":"https://api.github.com/users/relekang/received_events","type":"User","site_admin":false},"body":"This checks the html output of the reST parser for warnings and errors and adds a form error if one is present.","created_at":"2015-08-04T11:27:35Z","updated_at":"2015-08-04T13:34:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b728f4380f8040a50eb15ad71ddfa31970f05638","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/django/djangoproject.com/pulls/507/commits","review_comments_url":"https://api.github.com/repos/django/djangoproject.com/pulls/507/comments","review_comment_url":"https://api.github.com/repos/django/djangoproject.com/pulls/comments{/number}","comments_url":"https://api.github.com/repos/django/djangoproject.com/issues/507/comments","statuses_url":"https://api.github.com/repos/django/djangoproject.com/statuses/262b9486be2974cf50c37516cceb5dfe1666b1ae","head":{"label":"relekang:issue469-validate-rst-in-blogposts","ref":"issue469-validate-rst-in-blogposts","sha":"262b9486be2974cf50c37516cceb5dfe1666b1ae","user":{"login":"relekang","id":476364,"avatar_url":"https://avatars.githubusercontent.com/u/476364?v=3","gravatar_id":"","url":"https://api.github.com/users/relekang","html_url":"https://github.com/relekang","followers_url":"https://api.github.com/users/relekang/followers","following_url":"https://api.github.com/users/relekang/following{/other_user}","gists_url":"https://api.github.com/users/relekang/gists{/gist_id}","starred_url":"https://api.github.com/users/relekang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/relekang/subscriptions","organizations_url":"https://api.github.com/users/relekang/orgs","repos_url":"https://api.github.com/users/relekang/repos","events_url":"https://api.github.com/users/relekang/events{/privacy}","received_events_url":"https://api.github.com/users/relekang/received_events","type":"User","site_admin":false},"repo":{"id":29235859,"name":"djangoproject.com","full_name":"relekang/djangoproject.com","owner":{"login":"relekang","id":476364,"avatar_url":"https://avatars.githubusercontent.com/u/476364?v=3","gravatar_id":"","url":"https://api.github.com/users/relekang","html_url":"https://github.com/relekang","followers_url":"https://api.github.com/users/relekang/followers","following_url":"https://api.github.com/users/relekang/following{/other_user}","gists_url":"https://api.github.com/users/relekang/gists{/gist_id}","starred_url":"https://api.github.com/users/relekang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/relekang/subscriptions","organizations_url":"https://api.github.com/users/relekang/orgs","repos_url":"https://api.github.com/users/relekang/repos","events_url":"https://api.github.com/users/relekang/events{/privacy}","received_events_url":"https://api.github.com/users/relekang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/relekang/djangoproject.com","description":"Source code to djangoproject.com","fork":true,"url":"https://api.github.com/repos/relekang/djangoproject.com","forks_url":"https://api.github.com/repos/relekang/djangoproject.com/forks","keys_url":"https://api.github.com/repos/relekang/djangoproject.com/keys{/key_id}","collaborators_url":"https://api.github.com/repos/relekang/djangoproject.com/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/relekang/djangoproject.com/teams","hooks_url":"https://api.github.com/repos/relekang/djangoproject.com/hooks","issue_events_url":"https://api.github.com/repos/relekang/djangoproject.com/issues/events{/number}","events_url":"https://api.github.com/repos/relekang/djangoproject.com/events","assignees_url":"https://api.github.com/repos/relekang/djangoproject.com/assignees{/user}","branches_url":"https://api.github.com/repos/relekang/djangoproject.com/branches{/branch}","tags_url":"https://api.github.com/repos/relekang/djangoproject.com/tags","blobs_url":"https://api.github.com/repos/relekang/djangoproject.com/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/relekang/djangoproject.com/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/relekang/djangoproject.com/git/refs{/sha}","trees_url":"https://api.github.com/repos/relekang/djangoproject.com/git/trees{/sha}","statuses_url":"https://api.github.com/repos/relekang/djangoproject.com/statuses/{sha}","languages_url":"https://api.github.com/repos/relekang/djangoproject.com/languages","stargazers_url":"https://api.github.com/repos/relekang/djangoproject.com/stargazers","contributors_url":"https://api.github.com/repos/relekang/djangoproject.com/contributors","subscribers_url":"https://api.github.com/repos/relekang/djangoproject.com/subscribers","subscription_url":"https://api.github.com/repos/relekang/djangoproject.com/subscription","commits_url":"https://api.github.com/repos/relekang/djangoproject.com/commits{/sha}","git_commits_url":"https://api.github.com/repos/relekang/djangoproject.com/git/commits{/sha}","comments_url":"https://api.github.com/repos/relekang/djangoproject.com/comments{/number}","issue_comment_url":"https://api.github.com/repos/relekang/djangoproject.com/issues/comments{/number}","contents_url":"https://api.github.com/repos/relekang/djangoproject.com/contents/{+path}","compare_url":"https://api.github.com/repos/relekang/djangoproject.com/compare/{base}...{head}","merges_url":"https://api.github.com/repos/relekang/djangoproject.com/merges","archive_url":"https://api.github.com/repos/relekang/djangoproject.com/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/relekang/djangoproject.com/downloads","issues_url":"https://api.github.com/repos/relekang/djangoproject.com/issues{/number}","pulls_url":"https://api.github.com/repos/relekang/djangoproject.com/pulls{/number}","milestones_url":"https://api.github.com/repos/relekang/djangoproject.com/milestones{/number}","notifications_url":"https://api.github.com/repos/relekang/djangoproject.com/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/relekang/djangoproject.com/labels{/name}","releases_url":"https://api.github.com/repos/relekang/djangoproject.com/releases{/id}","created_at":"2015-01-14T09:01:33Z","updated_at":"2015-04-06T13:56:00Z","pushed_at":"2015-08-04T13:34:07Z","git_url":"git://github.com/relekang/djangoproject.com.git","ssh_url":"git@github.com:relekang/djangoproject.com.git","clone_url":"https://github.com/relekang/djangoproject.com.git","svn_url":"https://github.com/relekang/djangoproject.com","homepage":"https://www.djangoproject.com/","size":14603,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"django:master","ref":"master","sha":"abdd66b875bc9bfde25876d3a3c561af9f2ef062","user":{"login":"django","id":27804,"avatar_url":"https://avatars.githubusercontent.com/u/27804?v=3","gravatar_id":"","url":"https://api.github.com/users/django","html_url":"https://github.com/django","followers_url":"https://api.github.com/users/django/followers","following_url":"https://api.github.com/users/django/following{/other_user}","gists_url":"https://api.github.com/users/django/gists{/gist_id}","starred_url":"https://api.github.com/users/django/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/django/subscriptions","organizations_url":"https://api.github.com/users/django/orgs","repos_url":"https://api.github.com/users/django/repos","events_url":"https://api.github.com/users/django/events{/privacy}","received_events_url":"https://api.github.com/users/django/received_events","type":"Organization","site_admin":false},"repo":{"id":690903,"name":"djangoproject.com","full_name":"django/djangoproject.com","owner":{"login":"django","id":27804,"avatar_url":"https://avatars.githubusercontent.com/u/27804?v=3","gravatar_id":"","url":"https://api.github.com/users/django","html_url":"https://github.com/django","followers_url":"https://api.github.com/users/django/followers","following_url":"https://api.github.com/users/django/following{/other_user}","gists_url":"https://api.github.com/users/django/gists{/gist_id}","starred_url":"https://api.github.com/users/django/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/django/subscriptions","organizations_url":"https://api.github.com/users/django/orgs","repos_url":"https://api.github.com/users/django/repos","events_url":"https://api.github.com/users/django/events{/privacy}","received_events_url":"https://api.github.com/users/django/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/django/djangoproject.com","description":"Source code to djangoproject.com","fork":false,"url":"https://api.github.com/repos/django/djangoproject.com","forks_url":"https://api.github.com/repos/django/djangoproject.com/forks","keys_url":"https://api.github.com/repos/django/djangoproject.com/keys{/key_id}","collaborators_url":"https://api.github.com/repos/django/djangoproject.com/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/django/djangoproject.com/teams","hooks_url":"https://api.github.com/repos/django/djangoproject.com/hooks","issue_events_url":"https://api.github.com/repos/django/djangoproject.com/issues/events{/number}","events_url":"https://api.github.com/repos/django/djangoproject.com/events","assignees_url":"https://api.github.com/repos/django/djangoproject.com/assignees{/user}","branches_url":"https://api.github.com/repos/django/djangoproject.com/branches{/branch}","tags_url":"https://api.github.com/repos/django/djangoproject.com/tags","blobs_url":"https://api.github.com/repos/django/djangoproject.com/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/django/djangoproject.com/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/django/djangoproject.com/git/refs{/sha}","trees_url":"https://api.github.com/repos/django/djangoproject.com/git/trees{/sha}","statuses_url":"https://api.github.com/repos/django/djangoproject.com/statuses/{sha}","languages_url":"https://api.github.com/repos/django/djangoproject.com/languages","stargazers_url":"https://api.github.com/repos/django/djangoproject.com/stargazers","contributors_url":"https://api.github.com/repos/django/djangoproject.com/contributors","subscribers_url":"https://api.github.com/repos/django/djangoproject.com/subscribers","subscription_url":"https://api.github.com/repos/django/djangoproject.com/subscription","commits_url":"https://api.github.com/repos/django/djangoproject.com/commits{/sha}","git_commits_url":"https://api.github.com/repos/django/djangoproject.com/git/commits{/sha}","comments_url":"https://api.github.com/repos/django/djangoproject.com/comments{/number}","issue_comment_url":"https://api.github.com/repos/django/djangoproject.com/issues/comments{/number}","contents_url":"https://api.github.com/repos/django/djangoproject.com/contents/{+path}","compare_url":"https://api.github.com/repos/django/djangoproject.com/compare/{base}...{head}","merges_url":"https://api.github.com/repos/django/djangoproject.com/merges","archive_url":"https://api.github.com/repos/django/djangoproject.com/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/django/djangoproject.com/downloads","issues_url":"https://api.github.com/repos/django/djangoproject.com/issues{/number}","pulls_url":"https://api.github.com/repos/django/djangoproject.com/pulls{/number}","milestones_url":"https://api.github.com/repos/django/djangoproject.com/milestones{/number}","notifications_url":"https://api.github.com/repos/django/djangoproject.com/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/django/djangoproject.com/labels{/name}","releases_url":"https://api.github.com/repos/django/djangoproject.com/releases{/id}","created_at":"2010-05-28T11:27:09Z","updated_at":"2015-08-04T04:11:14Z","pushed_at":"2015-08-04T13:34:08Z","git_url":"git://github.com/django/djangoproject.com.git","ssh_url":"git@github.com:django/djangoproject.com.git","clone_url":"https://github.com/django/djangoproject.com.git","svn_url":"https://github.com/django/djangoproject.com","homepage":"https://www.djangoproject.com/","size":17645,"stargazers_count":506,"watchers_count":506,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":205,"mirror_url":null,"open_issues_count":39,"forks":205,"open_issues":39,"watchers":506,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/django/djangoproject.com/pulls/507"},"html":{"href":"https://github.com/django/djangoproject.com/pull/507"},"issue":{"href":"https://api.github.com/repos/django/djangoproject.com/issues/507"},"comments":{"href":"https://api.github.com/repos/django/djangoproject.com/issues/507/comments"},"review_comments":{"href":"https://api.github.com/repos/django/djangoproject.com/pulls/507/comments"},"review_comment":{"href":"https://api.github.com/repos/django/djangoproject.com/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/django/djangoproject.com/pulls/507/commits"},"statuses":{"href":"https://api.github.com/repos/django/djangoproject.com/statuses/262b9486be2974cf50c37516cceb5dfe1666b1ae"}}}}