{"action":"created","comment":{"url":"https://api.github.com/repos/azavea/nyc-trees/pulls/comments/28454912","id":28454912,"diff_hunk":"@@ -100,6 +100,12 @@ class User(NycModel, AbstractUser):\n                       'contributions_are_public': 'contributions',\n                       'achievements_are_public': 'achievements'}\n \n+    # Please keep in sync with special `/user/*` endpoints.\n+    # Ref: src/nyc_trees/apps/users/urls/user.py\n+    reserved_usernames = ('profile',\n+                          'settings',\n+                          'achievements')","path":"src/nyc_trees/apps/core/models.py","position":8,"original_position":8,"commit_id":"174c6e79acec2f48d8fd46752b2dd9d8527b9651","original_commit_id":"174c6e79acec2f48d8fd46752b2dd9d8527b9651","user":{"login":"kdeloach","id":43062,"avatar_url":"https://avatars.githubusercontent.com/u/43062?v=3","gravatar_id":"","url":"https://api.github.com/users/kdeloach","html_url":"https://github.com/kdeloach","followers_url":"https://api.github.com/users/kdeloach/followers","following_url":"https://api.github.com/users/kdeloach/following{/other_user}","gists_url":"https://api.github.com/users/kdeloach/gists{/gist_id}","starred_url":"https://api.github.com/users/kdeloach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdeloach/subscriptions","organizations_url":"https://api.github.com/users/kdeloach/orgs","repos_url":"https://api.github.com/users/kdeloach/repos","events_url":"https://api.github.com/users/kdeloach/events{/privacy}","received_events_url":"https://api.github.com/users/kdeloach/received_events","type":"User","site_admin":false},"body":"Should this be a module-level constant?","created_at":"2015-04-15T19:40:38Z","updated_at":"2015-04-15T19:40:38Z","html_url":"https://github.com/azavea/nyc-trees/pull/1195#discussion_r28454912","pull_request_url":"https://api.github.com/repos/azavea/nyc-trees/pulls/1195","_links":{"self":{"href":"https://api.github.com/repos/azavea/nyc-trees/pulls/comments/28454912"},"html":{"href":"https://github.com/azavea/nyc-trees/pull/1195#discussion_r28454912"},"pull_request":{"href":"https://api.github.com/repos/azavea/nyc-trees/pulls/1195"}}},"pull_request":{"url":"https://api.github.com/repos/azavea/nyc-trees/pulls/1195","id":33387790,"html_url":"https://github.com/azavea/nyc-trees/pull/1195","diff_url":"https://github.com/azavea/nyc-trees/pull/1195.diff","patch_url":"https://github.com/azavea/nyc-trees/pull/1195.patch","issue_url":"https://api.github.com/repos/azavea/nyc-trees/issues/1195","number":1195,"state":"open","locked":false,"title":"Prevent registration of usernames that conflict with URLs","user":{"login":"kdeloach","id":43062,"avatar_url":"https://avatars.githubusercontent.com/u/43062?v=3","gravatar_id":"","url":"https://api.github.com/users/kdeloach","html_url":"https://github.com/kdeloach","followers_url":"https://api.github.com/users/kdeloach/followers","following_url":"https://api.github.com/users/kdeloach/following{/other_user}","gists_url":"https://api.github.com/users/kdeloach/gists{/gist_id}","starred_url":"https://api.github.com/users/kdeloach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdeloach/subscriptions","organizations_url":"https://api.github.com/users/kdeloach/orgs","repos_url":"https://api.github.com/users/kdeloach/repos","events_url":"https://api.github.com/users/kdeloach/events{/privacy}","received_events_url":"https://api.github.com/users/kdeloach/received_events","type":"User","site_admin":false},"body":"Add form validation error to prevent registration of usernames that\r\nwould conflict with any of our special `/user/*` URLs.\r\n\r\nFixes #1171","created_at":"2015-04-15T19:24:38Z","updated_at":"2015-04-15T19:40:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a3bfe8fae1d649db063f8bac1afa9be243e5edae","assignee":{"login":"maurizi","id":4432106,"avatar_url":"https://avatars.githubusercontent.com/u/4432106?v=3","gravatar_id":"","url":"https://api.github.com/users/maurizi","html_url":"https://github.com/maurizi","followers_url":"https://api.github.com/users/maurizi/followers","following_url":"https://api.github.com/users/maurizi/following{/other_user}","gists_url":"https://api.github.com/users/maurizi/gists{/gist_id}","starred_url":"https://api.github.com/users/maurizi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maurizi/subscriptions","organizations_url":"https://api.github.com/users/maurizi/orgs","repos_url":"https://api.github.com/users/maurizi/repos","events_url":"https://api.github.com/users/maurizi/events{/privacy}","received_events_url":"https://api.github.com/users/maurizi/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/azavea/nyc-trees/milestones/9","html_url":"https://github.com/azavea/nyc-trees/milestones/2015-04-23","labels_url":"https://api.github.com/repos/azavea/nyc-trees/milestones/9/labels","id":1041785,"number":9,"title":"2015-04-23","description":"","creator":{"login":"jwalgran","id":17363,"avatar_url":"https://avatars.githubusercontent.com/u/17363?v=3","gravatar_id":"","url":"https://api.github.com/users/jwalgran","html_url":"https://github.com/jwalgran","followers_url":"https://api.github.com/users/jwalgran/followers","following_url":"https://api.github.com/users/jwalgran/following{/other_user}","gists_url":"https://api.github.com/users/jwalgran/gists{/gist_id}","starred_url":"https://api.github.com/users/jwalgran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwalgran/subscriptions","organizations_url":"https://api.github.com/users/jwalgran/orgs","repos_url":"https://api.github.com/users/jwalgran/repos","events_url":"https://api.github.com/users/jwalgran/events{/privacy}","received_events_url":"https://api.github.com/users/jwalgran/received_events","type":"User","site_admin":false},"open_issues":24,"closed_issues":25,"state":"open","created_at":"2015-03-27T14:34:25Z","updated_at":"2015-04-15T19:30:03Z","due_on":"2015-04-23T07:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/azavea/nyc-trees/pulls/1195/commits","review_comments_url":"https://api.github.com/repos/azavea/nyc-trees/pulls/1195/comments","review_comment_url":"https://api.github.com/repos/azavea/nyc-trees/pulls/comments{/number}","comments_url":"https://api.github.com/repos/azavea/nyc-trees/issues/1195/comments","statuses_url":"https://api.github.com/repos/azavea/nyc-trees/statuses/174c6e79acec2f48d8fd46752b2dd9d8527b9651","head":{"label":"kdeloach:feature/reserved-usernames","ref":"feature/reserved-usernames","sha":"174c6e79acec2f48d8fd46752b2dd9d8527b9651","user":{"login":"kdeloach","id":43062,"avatar_url":"https://avatars.githubusercontent.com/u/43062?v=3","gravatar_id":"","url":"https://api.github.com/users/kdeloach","html_url":"https://github.com/kdeloach","followers_url":"https://api.github.com/users/kdeloach/followers","following_url":"https://api.github.com/users/kdeloach/following{/other_user}","gists_url":"https://api.github.com/users/kdeloach/gists{/gist_id}","starred_url":"https://api.github.com/users/kdeloach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdeloach/subscriptions","organizations_url":"https://api.github.com/users/kdeloach/orgs","repos_url":"https://api.github.com/users/kdeloach/repos","events_url":"https://api.github.com/users/kdeloach/events{/privacy}","received_events_url":"https://api.github.com/users/kdeloach/received_events","type":"User","site_admin":false},"repo":{"id":27830914,"name":"nyc-trees","full_name":"kdeloach/nyc-trees","owner":{"login":"kdeloach","id":43062,"avatar_url":"https://avatars.githubusercontent.com/u/43062?v=3","gravatar_id":"","url":"https://api.github.com/users/kdeloach","html_url":"https://github.com/kdeloach","followers_url":"https://api.github.com/users/kdeloach/followers","following_url":"https://api.github.com/users/kdeloach/following{/other_user}","gists_url":"https://api.github.com/users/kdeloach/gists{/gist_id}","starred_url":"https://api.github.com/users/kdeloach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdeloach/subscriptions","organizations_url":"https://api.github.com/users/kdeloach/orgs","repos_url":"https://api.github.com/users/kdeloach/repos","events_url":"https://api.github.com/users/kdeloach/events{/privacy}","received_events_url":"https://api.github.com/users/kdeloach/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kdeloach/nyc-trees","description":"NYC Parks Trees Count! 2015 tree census","fork":true,"url":"https://api.github.com/repos/kdeloach/nyc-trees","forks_url":"https://api.github.com/repos/kdeloach/nyc-trees/forks","keys_url":"https://api.github.com/repos/kdeloach/nyc-trees/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kdeloach/nyc-trees/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kdeloach/nyc-trees/teams","hooks_url":"https://api.github.com/repos/kdeloach/nyc-trees/hooks","issue_events_url":"https://api.github.com/repos/kdeloach/nyc-trees/issues/events{/number}","events_url":"https://api.github.com/repos/kdeloach/nyc-trees/events","assignees_url":"https://api.github.com/repos/kdeloach/nyc-trees/assignees{/user}","branches_url":"https://api.github.com/repos/kdeloach/nyc-trees/branches{/branch}","tags_url":"https://api.github.com/repos/kdeloach/nyc-trees/tags","blobs_url":"https://api.github.com/repos/kdeloach/nyc-trees/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kdeloach/nyc-trees/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kdeloach/nyc-trees/git/refs{/sha}","trees_url":"https://api.github.com/repos/kdeloach/nyc-trees/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kdeloach/nyc-trees/statuses/{sha}","languages_url":"https://api.github.com/repos/kdeloach/nyc-trees/languages","stargazers_url":"https://api.github.com/repos/kdeloach/nyc-trees/stargazers","contributors_url":"https://api.github.com/repos/kdeloach/nyc-trees/contributors","subscribers_url":"https://api.github.com/repos/kdeloach/nyc-trees/subscribers","subscription_url":"https://api.github.com/repos/kdeloach/nyc-trees/subscription","commits_url":"https://api.github.com/repos/kdeloach/nyc-trees/commits{/sha}","git_commits_url":"https://api.github.com/repos/kdeloach/nyc-trees/git/commits{/sha}","comments_url":"https://api.github.com/repos/kdeloach/nyc-trees/comments{/number}","issue_comment_url":"https://api.github.com/repos/kdeloach/nyc-trees/issues/comments{/number}","contents_url":"https://api.github.com/repos/kdeloach/nyc-trees/contents/{+path}","compare_url":"https://api.github.com/repos/kdeloach/nyc-trees/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kdeloach/nyc-trees/merges","archive_url":"https://api.github.com/repos/kdeloach/nyc-trees/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kdeloach/nyc-trees/downloads","issues_url":"https://api.github.com/repos/kdeloach/nyc-trees/issues{/number}","pulls_url":"https://api.github.com/repos/kdeloach/nyc-trees/pulls{/number}","milestones_url":"https://api.github.com/repos/kdeloach/nyc-trees/milestones{/number}","notifications_url":"https://api.github.com/repos/kdeloach/nyc-trees/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kdeloach/nyc-trees/labels{/name}","releases_url":"https://api.github.com/repos/kdeloach/nyc-trees/releases{/id}","created_at":"2014-12-10T17:22:52Z","updated_at":"2015-04-15T19:28:27Z","pushed_at":"2015-04-15T19:40:06Z","git_url":"git://github.com/kdeloach/nyc-trees.git","ssh_url":"git@github.com:kdeloach/nyc-trees.git","clone_url":"https://github.com/kdeloach/nyc-trees.git","svn_url":"https://github.com/kdeloach/nyc-trees","homepage":null,"size":148968,"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":"develop"}},"base":{"label":"azavea:develop","ref":"develop","sha":"3296d1dd7ddc7a443d80b42eb360fe623aeb760d","user":{"login":"azavea","id":595231,"avatar_url":"https://avatars.githubusercontent.com/u/595231?v=3","gravatar_id":"","url":"https://api.github.com/users/azavea","html_url":"https://github.com/azavea","followers_url":"https://api.github.com/users/azavea/followers","following_url":"https://api.github.com/users/azavea/following{/other_user}","gists_url":"https://api.github.com/users/azavea/gists{/gist_id}","starred_url":"https://api.github.com/users/azavea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azavea/subscriptions","organizations_url":"https://api.github.com/users/azavea/orgs","repos_url":"https://api.github.com/users/azavea/repos","events_url":"https://api.github.com/users/azavea/events{/privacy}","received_events_url":"https://api.github.com/users/azavea/received_events","type":"Organization","site_admin":false},"repo":{"id":24998407,"name":"nyc-trees","full_name":"azavea/nyc-trees","owner":{"login":"azavea","id":595231,"avatar_url":"https://avatars.githubusercontent.com/u/595231?v=3","gravatar_id":"","url":"https://api.github.com/users/azavea","html_url":"https://github.com/azavea","followers_url":"https://api.github.com/users/azavea/followers","following_url":"https://api.github.com/users/azavea/following{/other_user}","gists_url":"https://api.github.com/users/azavea/gists{/gist_id}","starred_url":"https://api.github.com/users/azavea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azavea/subscriptions","organizations_url":"https://api.github.com/users/azavea/orgs","repos_url":"https://api.github.com/users/azavea/repos","events_url":"https://api.github.com/users/azavea/events{/privacy}","received_events_url":"https://api.github.com/users/azavea/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/azavea/nyc-trees","description":"NYC Parks Trees Count! 2015 tree census","fork":false,"url":"https://api.github.com/repos/azavea/nyc-trees","forks_url":"https://api.github.com/repos/azavea/nyc-trees/forks","keys_url":"https://api.github.com/repos/azavea/nyc-trees/keys{/key_id}","collaborators_url":"https://api.github.com/repos/azavea/nyc-trees/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/azavea/nyc-trees/teams","hooks_url":"https://api.github.com/repos/azavea/nyc-trees/hooks","issue_events_url":"https://api.github.com/repos/azavea/nyc-trees/issues/events{/number}","events_url":"https://api.github.com/repos/azavea/nyc-trees/events","assignees_url":"https://api.github.com/repos/azavea/nyc-trees/assignees{/user}","branches_url":"https://api.github.com/repos/azavea/nyc-trees/branches{/branch}","tags_url":"https://api.github.com/repos/azavea/nyc-trees/tags","blobs_url":"https://api.github.com/repos/azavea/nyc-trees/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/azavea/nyc-trees/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/azavea/nyc-trees/git/refs{/sha}","trees_url":"https://api.github.com/repos/azavea/nyc-trees/git/trees{/sha}","statuses_url":"https://api.github.com/repos/azavea/nyc-trees/statuses/{sha}","languages_url":"https://api.github.com/repos/azavea/nyc-trees/languages","stargazers_url":"https://api.github.com/repos/azavea/nyc-trees/stargazers","contributors_url":"https://api.github.com/repos/azavea/nyc-trees/contributors","subscribers_url":"https://api.github.com/repos/azavea/nyc-trees/subscribers","subscription_url":"https://api.github.com/repos/azavea/nyc-trees/subscription","commits_url":"https://api.github.com/repos/azavea/nyc-trees/commits{/sha}","git_commits_url":"https://api.github.com/repos/azavea/nyc-trees/git/commits{/sha}","comments_url":"https://api.github.com/repos/azavea/nyc-trees/comments{/number}","issue_comment_url":"https://api.github.com/repos/azavea/nyc-trees/issues/comments{/number}","contents_url":"https://api.github.com/repos/azavea/nyc-trees/contents/{+path}","compare_url":"https://api.github.com/repos/azavea/nyc-trees/compare/{base}...{head}","merges_url":"https://api.github.com/repos/azavea/nyc-trees/merges","archive_url":"https://api.github.com/repos/azavea/nyc-trees/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/azavea/nyc-trees/downloads","issues_url":"https://api.github.com/repos/azavea/nyc-trees/issues{/number}","pulls_url":"https://api.github.com/repos/azavea/nyc-trees/pulls{/number}","milestones_url":"https://api.github.com/repos/azavea/nyc-trees/milestones{/number}","notifications_url":"https://api.github.com/repos/azavea/nyc-trees/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/azavea/nyc-trees/labels{/name}","releases_url":"https://api.github.com/repos/azavea/nyc-trees/releases{/id}","created_at":"2014-10-09T16:33:00Z","updated_at":"2015-04-15T19:39:10Z","pushed_at":"2015-04-15T19:40:06Z","git_url":"git://github.com/azavea/nyc-trees.git","ssh_url":"git@github.com:azavea/nyc-trees.git","clone_url":"https://github.com/azavea/nyc-trees.git","svn_url":"https://github.com/azavea/nyc-trees","homepage":null,"size":164872,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":175,"forks":5,"open_issues":175,"watchers":5,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/azavea/nyc-trees/pulls/1195"},"html":{"href":"https://github.com/azavea/nyc-trees/pull/1195"},"issue":{"href":"https://api.github.com/repos/azavea/nyc-trees/issues/1195"},"comments":{"href":"https://api.github.com/repos/azavea/nyc-trees/issues/1195/comments"},"review_comments":{"href":"https://api.github.com/repos/azavea/nyc-trees/pulls/1195/comments"},"review_comment":{"href":"https://api.github.com/repos/azavea/nyc-trees/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/azavea/nyc-trees/pulls/1195/commits"},"statuses":{"href":"https://api.github.com/repos/azavea/nyc-trees/statuses/174c6e79acec2f48d8fd46752b2dd9d8527b9651"}}}}