{"action":"created","comment":{"url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/comments/49262849","id":49262849,"diff_hunk":"@@ -39,3 +39,11 @@ def get_root_rest_url(self):\n         root_instance = self.get_root_rest_element()\n         rest_url = '%s-detail' % type(root_instance)._meta.object_name.lower()\n         return reverse(rest_url, args=[str(root_instance.pk)])\n+\n+    def get_collection_string(self):\n+        \"\"\"\n+        Returns the string representing the name of the collection.\n+        \"\"\"\n+        # TODO: find a way not to use the url","path":"openslides/utils/models.py","position":9,"original_position":9,"commit_id":"0d3332e65ef9d51cd0ef19a49e294b3ef6e24534","original_commit_id":"0d3332e65ef9d51cd0ef19a49e294b3ef6e24534","user":{"login":"ostcar","id":977937,"avatar_url":"https://avatars.githubusercontent.com/u/977937?v=3","gravatar_id":"","url":"https://api.github.com/users/ostcar","html_url":"https://github.com/ostcar","followers_url":"https://api.github.com/users/ostcar/followers","following_url":"https://api.github.com/users/ostcar/following{/other_user}","gists_url":"https://api.github.com/users/ostcar/gists{/gist_id}","starred_url":"https://api.github.com/users/ostcar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ostcar/subscriptions","organizations_url":"https://api.github.com/users/ostcar/orgs","repos_url":"https://api.github.com/users/ostcar/repos","events_url":"https://api.github.com/users/ostcar/events{/privacy}","received_events_url":"https://api.github.com/users/ostcar/received_events","type":"User","site_admin":false},"body":"#1791","created_at":"2016-01-09T10:21:51Z","updated_at":"2016-01-09T10:21:51Z","html_url":"https://github.com/OpenSlides/OpenSlides/pull/1782#discussion_r49262849","pull_request_url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1782","_links":{"self":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/comments/49262849"},"html":{"href":"https://github.com/OpenSlides/OpenSlides/pull/1782#discussion_r49262849"},"pull_request":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1782"}}},"pull_request":{"url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1782","id":54925803,"html_url":"https://github.com/OpenSlides/OpenSlides/pull/1782","diff_url":"https://github.com/OpenSlides/OpenSlides/pull/1782.diff","patch_url":"https://github.com/OpenSlides/OpenSlides/pull/1782.patch","issue_url":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/1782","number":1782,"state":"open","locked":false,"title":"Added a search on the server side.","user":{"login":"ostcar","id":977937,"avatar_url":"https://avatars.githubusercontent.com/u/977937?v=3","gravatar_id":"","url":"https://api.github.com/users/ostcar","html_url":"https://github.com/ostcar","followers_url":"https://api.github.com/users/ostcar/followers","following_url":"https://api.github.com/users/ostcar/following{/other_user}","gists_url":"https://api.github.com/users/ostcar/gists{/gist_id}","starred_url":"https://api.github.com/users/ostcar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ostcar/subscriptions","organizations_url":"https://api.github.com/users/ostcar/orgs","repos_url":"https://api.github.com/users/ostcar/repos","events_url":"https://api.github.com/users/ostcar/events{/privacy}","received_events_url":"https://api.github.com/users/ostcar/received_events","type":"User","site_admin":false},"body":"Please review and test this PR. There could be erros in it but also some open design decisions.\r\n\r\nUse localhost:8000/search/?q=foo to search for foo \r\n\r\nStil open:\r\n- [ ] manage command to recreate the index with existing instances\r\n- [x] support umlauts in the search query string\r\n- [x] isort and flake8","created_at":"2016-01-03T14:37:04Z","updated_at":"2016-01-09T10:21:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"12a60e13fdd99c704ce4c968b696792853bf2180","assignee":{"login":"ostcar","id":977937,"avatar_url":"https://avatars.githubusercontent.com/u/977937?v=3","gravatar_id":"","url":"https://api.github.com/users/ostcar","html_url":"https://github.com/ostcar","followers_url":"https://api.github.com/users/ostcar/followers","following_url":"https://api.github.com/users/ostcar/following{/other_user}","gists_url":"https://api.github.com/users/ostcar/gists{/gist_id}","starred_url":"https://api.github.com/users/ostcar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ostcar/subscriptions","organizations_url":"https://api.github.com/users/ostcar/orgs","repos_url":"https://api.github.com/users/ostcar/repos","events_url":"https://api.github.com/users/ostcar/events{/privacy}","received_events_url":"https://api.github.com/users/ostcar/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/OpenSlides/OpenSlides/milestones/23","html_url":"https://github.com/OpenSlides/OpenSlides/milestones/2.0b2","labels_url":"https://api.github.com/repos/OpenSlides/OpenSlides/milestones/23/labels","id":1407198,"number":23,"title":"2.0b2","description":"","creator":{"login":"emanuelschuetze","id":2075427,"avatar_url":"https://avatars.githubusercontent.com/u/2075427?v=3","gravatar_id":"","url":"https://api.github.com/users/emanuelschuetze","html_url":"https://github.com/emanuelschuetze","followers_url":"https://api.github.com/users/emanuelschuetze/followers","following_url":"https://api.github.com/users/emanuelschuetze/following{/other_user}","gists_url":"https://api.github.com/users/emanuelschuetze/gists{/gist_id}","starred_url":"https://api.github.com/users/emanuelschuetze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emanuelschuetze/subscriptions","organizations_url":"https://api.github.com/users/emanuelschuetze/orgs","repos_url":"https://api.github.com/users/emanuelschuetze/repos","events_url":"https://api.github.com/users/emanuelschuetze/events{/privacy}","received_events_url":"https://api.github.com/users/emanuelschuetze/received_events","type":"User","site_admin":false},"open_issues":45,"closed_issues":38,"state":"open","created_at":"2015-11-11T19:16:43Z","updated_at":"2016-01-09T10:12:56Z","due_on":"2016-01-17T23:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1782/commits","review_comments_url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1782/comments","review_comment_url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/1782/comments","statuses_url":"https://api.github.com/repos/OpenSlides/OpenSlides/statuses/0d3332e65ef9d51cd0ef19a49e294b3ef6e24534","head":{"label":"ostcar:search","ref":"search","sha":"0d3332e65ef9d51cd0ef19a49e294b3ef6e24534","user":{"login":"ostcar","id":977937,"avatar_url":"https://avatars.githubusercontent.com/u/977937?v=3","gravatar_id":"","url":"https://api.github.com/users/ostcar","html_url":"https://github.com/ostcar","followers_url":"https://api.github.com/users/ostcar/followers","following_url":"https://api.github.com/users/ostcar/following{/other_user}","gists_url":"https://api.github.com/users/ostcar/gists{/gist_id}","starred_url":"https://api.github.com/users/ostcar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ostcar/subscriptions","organizations_url":"https://api.github.com/users/ostcar/orgs","repos_url":"https://api.github.com/users/ostcar/repos","events_url":"https://api.github.com/users/ostcar/events{/privacy}","received_events_url":"https://api.github.com/users/ostcar/received_events","type":"User","site_admin":false},"repo":{"id":5257807,"name":"OpenSlides","full_name":"ostcar/OpenSlides","owner":{"login":"ostcar","id":977937,"avatar_url":"https://avatars.githubusercontent.com/u/977937?v=3","gravatar_id":"","url":"https://api.github.com/users/ostcar","html_url":"https://github.com/ostcar","followers_url":"https://api.github.com/users/ostcar/followers","following_url":"https://api.github.com/users/ostcar/following{/other_user}","gists_url":"https://api.github.com/users/ostcar/gists{/gist_id}","starred_url":"https://api.github.com/users/ostcar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ostcar/subscriptions","organizations_url":"https://api.github.com/users/ostcar/orgs","repos_url":"https://api.github.com/users/ostcar/repos","events_url":"https://api.github.com/users/ostcar/events{/privacy}","received_events_url":"https://api.github.com/users/ostcar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ostcar/OpenSlides","description":"","fork":true,"url":"https://api.github.com/repos/ostcar/OpenSlides","forks_url":"https://api.github.com/repos/ostcar/OpenSlides/forks","keys_url":"https://api.github.com/repos/ostcar/OpenSlides/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ostcar/OpenSlides/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ostcar/OpenSlides/teams","hooks_url":"https://api.github.com/repos/ostcar/OpenSlides/hooks","issue_events_url":"https://api.github.com/repos/ostcar/OpenSlides/issues/events{/number}","events_url":"https://api.github.com/repos/ostcar/OpenSlides/events","assignees_url":"https://api.github.com/repos/ostcar/OpenSlides/assignees{/user}","branches_url":"https://api.github.com/repos/ostcar/OpenSlides/branches{/branch}","tags_url":"https://api.github.com/repos/ostcar/OpenSlides/tags","blobs_url":"https://api.github.com/repos/ostcar/OpenSlides/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ostcar/OpenSlides/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ostcar/OpenSlides/git/refs{/sha}","trees_url":"https://api.github.com/repos/ostcar/OpenSlides/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ostcar/OpenSlides/statuses/{sha}","languages_url":"https://api.github.com/repos/ostcar/OpenSlides/languages","stargazers_url":"https://api.github.com/repos/ostcar/OpenSlides/stargazers","contributors_url":"https://api.github.com/repos/ostcar/OpenSlides/contributors","subscribers_url":"https://api.github.com/repos/ostcar/OpenSlides/subscribers","subscription_url":"https://api.github.com/repos/ostcar/OpenSlides/subscription","commits_url":"https://api.github.com/repos/ostcar/OpenSlides/commits{/sha}","git_commits_url":"https://api.github.com/repos/ostcar/OpenSlides/git/commits{/sha}","comments_url":"https://api.github.com/repos/ostcar/OpenSlides/comments{/number}","issue_comment_url":"https://api.github.com/repos/ostcar/OpenSlides/issues/comments{/number}","contents_url":"https://api.github.com/repos/ostcar/OpenSlides/contents/{+path}","compare_url":"https://api.github.com/repos/ostcar/OpenSlides/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ostcar/OpenSlides/merges","archive_url":"https://api.github.com/repos/ostcar/OpenSlides/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ostcar/OpenSlides/downloads","issues_url":"https://api.github.com/repos/ostcar/OpenSlides/issues{/number}","pulls_url":"https://api.github.com/repos/ostcar/OpenSlides/pulls{/number}","milestones_url":"https://api.github.com/repos/ostcar/OpenSlides/milestones{/number}","notifications_url":"https://api.github.com/repos/ostcar/OpenSlides/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ostcar/OpenSlides/labels{/name}","releases_url":"https://api.github.com/repos/ostcar/OpenSlides/releases{/id}","created_at":"2012-08-01T10:15:17Z","updated_at":"2015-06-19T06:46:07Z","pushed_at":"2016-01-09T10:16:42Z","git_url":"git://github.com/ostcar/OpenSlides.git","ssh_url":"git@github.com:ostcar/OpenSlides.git","clone_url":"https://github.com/ostcar/OpenSlides.git","svn_url":"https://github.com/ostcar/OpenSlides","homepage":null,"size":36352,"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":"OpenSlides:master","ref":"master","sha":"5deae121ee8715a7893767b63ac2ff42beea68d2","user":{"login":"OpenSlides","id":2055730,"avatar_url":"https://avatars.githubusercontent.com/u/2055730?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenSlides","html_url":"https://github.com/OpenSlides","followers_url":"https://api.github.com/users/OpenSlides/followers","following_url":"https://api.github.com/users/OpenSlides/following{/other_user}","gists_url":"https://api.github.com/users/OpenSlides/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenSlides/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenSlides/subscriptions","organizations_url":"https://api.github.com/users/OpenSlides/orgs","repos_url":"https://api.github.com/users/OpenSlides/repos","events_url":"https://api.github.com/users/OpenSlides/events{/privacy}","received_events_url":"https://api.github.com/users/OpenSlides/received_events","type":"Organization","site_admin":false},"repo":{"id":5250779,"name":"OpenSlides","full_name":"OpenSlides/OpenSlides","owner":{"login":"OpenSlides","id":2055730,"avatar_url":"https://avatars.githubusercontent.com/u/2055730?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenSlides","html_url":"https://github.com/OpenSlides","followers_url":"https://api.github.com/users/OpenSlides/followers","following_url":"https://api.github.com/users/OpenSlides/following{/other_user}","gists_url":"https://api.github.com/users/OpenSlides/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenSlides/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenSlides/subscriptions","organizations_url":"https://api.github.com/users/OpenSlides/orgs","repos_url":"https://api.github.com/users/OpenSlides/repos","events_url":"https://api.github.com/users/OpenSlides/events{/privacy}","received_events_url":"https://api.github.com/users/OpenSlides/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenSlides/OpenSlides","description":"Presentation and assembly system","fork":false,"url":"https://api.github.com/repos/OpenSlides/OpenSlides","forks_url":"https://api.github.com/repos/OpenSlides/OpenSlides/forks","keys_url":"https://api.github.com/repos/OpenSlides/OpenSlides/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenSlides/OpenSlides/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenSlides/OpenSlides/teams","hooks_url":"https://api.github.com/repos/OpenSlides/OpenSlides/hooks","issue_events_url":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/events{/number}","events_url":"https://api.github.com/repos/OpenSlides/OpenSlides/events","assignees_url":"https://api.github.com/repos/OpenSlides/OpenSlides/assignees{/user}","branches_url":"https://api.github.com/repos/OpenSlides/OpenSlides/branches{/branch}","tags_url":"https://api.github.com/repos/OpenSlides/OpenSlides/tags","blobs_url":"https://api.github.com/repos/OpenSlides/OpenSlides/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenSlides/OpenSlides/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenSlides/OpenSlides/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenSlides/OpenSlides/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenSlides/OpenSlides/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenSlides/OpenSlides/languages","stargazers_url":"https://api.github.com/repos/OpenSlides/OpenSlides/stargazers","contributors_url":"https://api.github.com/repos/OpenSlides/OpenSlides/contributors","subscribers_url":"https://api.github.com/repos/OpenSlides/OpenSlides/subscribers","subscription_url":"https://api.github.com/repos/OpenSlides/OpenSlides/subscription","commits_url":"https://api.github.com/repos/OpenSlides/OpenSlides/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenSlides/OpenSlides/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenSlides/OpenSlides/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenSlides/OpenSlides/contents/{+path}","compare_url":"https://api.github.com/repos/OpenSlides/OpenSlides/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenSlides/OpenSlides/merges","archive_url":"https://api.github.com/repos/OpenSlides/OpenSlides/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenSlides/OpenSlides/downloads","issues_url":"https://api.github.com/repos/OpenSlides/OpenSlides/issues{/number}","pulls_url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenSlides/OpenSlides/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenSlides/OpenSlides/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenSlides/OpenSlides/labels{/name}","releases_url":"https://api.github.com/repos/OpenSlides/OpenSlides/releases{/id}","created_at":"2012-07-31T20:04:39Z","updated_at":"2016-01-04T14:25:07Z","pushed_at":"2016-01-09T10:16:42Z","git_url":"git://github.com/OpenSlides/OpenSlides.git","ssh_url":"git@github.com:OpenSlides/OpenSlides.git","clone_url":"https://github.com/OpenSlides/OpenSlides.git","svn_url":"https://github.com/OpenSlides/OpenSlides","homepage":"http://openslides.org","size":37111,"stargazers_count":72,"watchers_count":72,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":30,"mirror_url":null,"open_issues_count":102,"forks":30,"open_issues":102,"watchers":72,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1782"},"html":{"href":"https://github.com/OpenSlides/OpenSlides/pull/1782"},"issue":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/1782"},"comments":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/1782/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1782/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1782/commits"},"statuses":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/statuses/0d3332e65ef9d51cd0ef19a49e294b3ef6e24534"}}}}