{"action":"created","comment":{"url":"https://api.github.com/repos/pbs/django-filer/pulls/comments/78329726","id":78329726,"diff_hunk":"@@ -506,16 +511,43 @@ def __lt__(self, other):\n \n     @property\n     def actual_name(self):\n+        clean_name = self.clean_actual_name\n+        if not self.sha1:\n+            try:\n+                self.generate_sha1()\n+            except Exception:\n+                return clean_name\n+        suffix = self.sha1[:10]\n+        if '.' not in clean_name:\n+            return '{}.{}'.format(clean_name, suffix)\n+        tokens = self.clean_actual_name.split('.')\n+        tokens.insert(len(tokens)-1, self.sha1[:10])","path":"filer/models/filemodels.py","position":63,"original_position":63,"commit_id":"ac8c72a8def1f29379c1afcded4184d198bf0935","original_commit_id":"ac8c72a8def1f29379c1afcded4184d198bf0935","user":{"login":"zoliszeredi","id":2797287,"avatar_url":"https://avatars.githubusercontent.com/u/2797287?v=3","gravatar_id":"","url":"https://api.github.com/users/zoliszeredi","html_url":"https://github.com/zoliszeredi","followers_url":"https://api.github.com/users/zoliszeredi/followers","following_url":"https://api.github.com/users/zoliszeredi/following{/other_user}","gists_url":"https://api.github.com/users/zoliszeredi/gists{/gist_id}","starred_url":"https://api.github.com/users/zoliszeredi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoliszeredi/subscriptions","organizations_url":"https://api.github.com/users/zoliszeredi/orgs","repos_url":"https://api.github.com/users/zoliszeredi/repos","events_url":"https://api.github.com/users/zoliszeredi/events{/privacy}","received_events_url":"https://api.github.com/users/zoliszeredi/received_events","type":"User","site_admin":false},"body":"Be aware that some files may contain additional more than one dot \".\"\r\nSo for instance \"_pictures.tar.gz_\" will be turn into \"_pictures.tar.thehashcode.gz_\"","created_at":"2016-09-12T08:11:02Z","updated_at":"2016-09-12T08:11:02Z","html_url":"https://github.com/pbs/django-filer/pull/100#discussion_r78329726","pull_request_url":"https://api.github.com/repos/pbs/django-filer/pulls/100","_links":{"self":{"href":"https://api.github.com/repos/pbs/django-filer/pulls/comments/78329726"},"html":{"href":"https://github.com/pbs/django-filer/pull/100#discussion_r78329726"},"pull_request":{"href":"https://api.github.com/repos/pbs/django-filer/pulls/100"}}},"pull_request":{"url":"https://api.github.com/repos/pbs/django-filer/pulls/100","id":84821772,"html_url":"https://github.com/pbs/django-filer/pull/100","diff_url":"https://github.com/pbs/django-filer/pull/100.diff","patch_url":"https://github.com/pbs/django-filer/pull/100.patch","issue_url":"https://api.github.com/repos/pbs/django-filer/issues/100","number":100,"state":"open","locked":false,"title":"LUN-3221: Add content hash to filenames so CDN urls are automatically invalidated.","user":{"login":"virtosubogdan","id":645565,"avatar_url":"https://avatars.githubusercontent.com/u/645565?v=3","gravatar_id":"","url":"https://api.github.com/users/virtosubogdan","html_url":"https://github.com/virtosubogdan","followers_url":"https://api.github.com/users/virtosubogdan/followers","following_url":"https://api.github.com/users/virtosubogdan/following{/other_user}","gists_url":"https://api.github.com/users/virtosubogdan/gists{/gist_id}","starred_url":"https://api.github.com/users/virtosubogdan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/virtosubogdan/subscriptions","organizations_url":"https://api.github.com/users/virtosubogdan/orgs","repos_url":"https://api.github.com/users/virtosubogdan/repos","events_url":"https://api.github.com/users/virtosubogdan/events{/privacy}","received_events_url":"https://api.github.com/users/virtosubogdan/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-12T06:40:10Z","updated_at":"2016-09-12T08:11:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"179f60070f17342fb6d4292eadf9171e85c8f6d9","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/pbs/django-filer/pulls/100/commits","review_comments_url":"https://api.github.com/repos/pbs/django-filer/pulls/100/comments","review_comment_url":"https://api.github.com/repos/pbs/django-filer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pbs/django-filer/issues/100/comments","statuses_url":"https://api.github.com/repos/pbs/django-filer/statuses/ac8c72a8def1f29379c1afcded4184d198bf0935","head":{"label":"pbs:LUN-3221","ref":"LUN-3221","sha":"ac8c72a8def1f29379c1afcded4184d198bf0935","user":{"login":"pbs","id":547533,"avatar_url":"https://avatars.githubusercontent.com/u/547533?v=3","gravatar_id":"","url":"https://api.github.com/users/pbs","html_url":"https://github.com/pbs","followers_url":"https://api.github.com/users/pbs/followers","following_url":"https://api.github.com/users/pbs/following{/other_user}","gists_url":"https://api.github.com/users/pbs/gists{/gist_id}","starred_url":"https://api.github.com/users/pbs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbs/subscriptions","organizations_url":"https://api.github.com/users/pbs/orgs","repos_url":"https://api.github.com/users/pbs/repos","events_url":"https://api.github.com/users/pbs/events{/privacy}","received_events_url":"https://api.github.com/users/pbs/received_events","type":"Organization","site_admin":false},"repo":{"id":9214923,"name":"django-filer","full_name":"pbs/django-filer","owner":{"login":"pbs","id":547533,"avatar_url":"https://avatars.githubusercontent.com/u/547533?v=3","gravatar_id":"","url":"https://api.github.com/users/pbs","html_url":"https://github.com/pbs","followers_url":"https://api.github.com/users/pbs/followers","following_url":"https://api.github.com/users/pbs/following{/other_user}","gists_url":"https://api.github.com/users/pbs/gists{/gist_id}","starred_url":"https://api.github.com/users/pbs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbs/subscriptions","organizations_url":"https://api.github.com/users/pbs/orgs","repos_url":"https://api.github.com/users/pbs/repos","events_url":"https://api.github.com/users/pbs/events{/privacy}","received_events_url":"https://api.github.com/users/pbs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pbs/django-filer","description":"File and Image Management Application for django","fork":true,"url":"https://api.github.com/repos/pbs/django-filer","forks_url":"https://api.github.com/repos/pbs/django-filer/forks","keys_url":"https://api.github.com/repos/pbs/django-filer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pbs/django-filer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pbs/django-filer/teams","hooks_url":"https://api.github.com/repos/pbs/django-filer/hooks","issue_events_url":"https://api.github.com/repos/pbs/django-filer/issues/events{/number}","events_url":"https://api.github.com/repos/pbs/django-filer/events","assignees_url":"https://api.github.com/repos/pbs/django-filer/assignees{/user}","branches_url":"https://api.github.com/repos/pbs/django-filer/branches{/branch}","tags_url":"https://api.github.com/repos/pbs/django-filer/tags","blobs_url":"https://api.github.com/repos/pbs/django-filer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pbs/django-filer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pbs/django-filer/git/refs{/sha}","trees_url":"https://api.github.com/repos/pbs/django-filer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pbs/django-filer/statuses/{sha}","languages_url":"https://api.github.com/repos/pbs/django-filer/languages","stargazers_url":"https://api.github.com/repos/pbs/django-filer/stargazers","contributors_url":"https://api.github.com/repos/pbs/django-filer/contributors","subscribers_url":"https://api.github.com/repos/pbs/django-filer/subscribers","subscription_url":"https://api.github.com/repos/pbs/django-filer/subscription","commits_url":"https://api.github.com/repos/pbs/django-filer/commits{/sha}","git_commits_url":"https://api.github.com/repos/pbs/django-filer/git/commits{/sha}","comments_url":"https://api.github.com/repos/pbs/django-filer/comments{/number}","issue_comment_url":"https://api.github.com/repos/pbs/django-filer/issues/comments{/number}","contents_url":"https://api.github.com/repos/pbs/django-filer/contents/{+path}","compare_url":"https://api.github.com/repos/pbs/django-filer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pbs/django-filer/merges","archive_url":"https://api.github.com/repos/pbs/django-filer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pbs/django-filer/downloads","issues_url":"https://api.github.com/repos/pbs/django-filer/issues{/number}","pulls_url":"https://api.github.com/repos/pbs/django-filer/pulls{/number}","milestones_url":"https://api.github.com/repos/pbs/django-filer/milestones{/number}","notifications_url":"https://api.github.com/repos/pbs/django-filer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pbs/django-filer/labels{/name}","releases_url":"https://api.github.com/repos/pbs/django-filer/releases{/id}","deployments_url":"https://api.github.com/repos/pbs/django-filer/deployments","created_at":"2013-04-04T09:28:54Z","updated_at":"2015-04-08T08:56:00Z","pushed_at":"2016-09-12T06:40:11Z","git_url":"git://github.com/pbs/django-filer.git","ssh_url":"git@github.com:pbs/django-filer.git","clone_url":"https://github.com/pbs/django-filer.git","svn_url":"https://github.com/pbs/django-filer","homepage":"https://github.com/stefanfoulis/django-filer/wiki","size":5811,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master_pbs"}},"base":{"label":"pbs:master_pbs","ref":"master_pbs","sha":"6c1b462eb48d4aa5add4a670b0edfb65d2322807","user":{"login":"pbs","id":547533,"avatar_url":"https://avatars.githubusercontent.com/u/547533?v=3","gravatar_id":"","url":"https://api.github.com/users/pbs","html_url":"https://github.com/pbs","followers_url":"https://api.github.com/users/pbs/followers","following_url":"https://api.github.com/users/pbs/following{/other_user}","gists_url":"https://api.github.com/users/pbs/gists{/gist_id}","starred_url":"https://api.github.com/users/pbs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbs/subscriptions","organizations_url":"https://api.github.com/users/pbs/orgs","repos_url":"https://api.github.com/users/pbs/repos","events_url":"https://api.github.com/users/pbs/events{/privacy}","received_events_url":"https://api.github.com/users/pbs/received_events","type":"Organization","site_admin":false},"repo":{"id":9214923,"name":"django-filer","full_name":"pbs/django-filer","owner":{"login":"pbs","id":547533,"avatar_url":"https://avatars.githubusercontent.com/u/547533?v=3","gravatar_id":"","url":"https://api.github.com/users/pbs","html_url":"https://github.com/pbs","followers_url":"https://api.github.com/users/pbs/followers","following_url":"https://api.github.com/users/pbs/following{/other_user}","gists_url":"https://api.github.com/users/pbs/gists{/gist_id}","starred_url":"https://api.github.com/users/pbs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbs/subscriptions","organizations_url":"https://api.github.com/users/pbs/orgs","repos_url":"https://api.github.com/users/pbs/repos","events_url":"https://api.github.com/users/pbs/events{/privacy}","received_events_url":"https://api.github.com/users/pbs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pbs/django-filer","description":"File and Image Management Application for django","fork":true,"url":"https://api.github.com/repos/pbs/django-filer","forks_url":"https://api.github.com/repos/pbs/django-filer/forks","keys_url":"https://api.github.com/repos/pbs/django-filer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pbs/django-filer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pbs/django-filer/teams","hooks_url":"https://api.github.com/repos/pbs/django-filer/hooks","issue_events_url":"https://api.github.com/repos/pbs/django-filer/issues/events{/number}","events_url":"https://api.github.com/repos/pbs/django-filer/events","assignees_url":"https://api.github.com/repos/pbs/django-filer/assignees{/user}","branches_url":"https://api.github.com/repos/pbs/django-filer/branches{/branch}","tags_url":"https://api.github.com/repos/pbs/django-filer/tags","blobs_url":"https://api.github.com/repos/pbs/django-filer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pbs/django-filer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pbs/django-filer/git/refs{/sha}","trees_url":"https://api.github.com/repos/pbs/django-filer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pbs/django-filer/statuses/{sha}","languages_url":"https://api.github.com/repos/pbs/django-filer/languages","stargazers_url":"https://api.github.com/repos/pbs/django-filer/stargazers","contributors_url":"https://api.github.com/repos/pbs/django-filer/contributors","subscribers_url":"https://api.github.com/repos/pbs/django-filer/subscribers","subscription_url":"https://api.github.com/repos/pbs/django-filer/subscription","commits_url":"https://api.github.com/repos/pbs/django-filer/commits{/sha}","git_commits_url":"https://api.github.com/repos/pbs/django-filer/git/commits{/sha}","comments_url":"https://api.github.com/repos/pbs/django-filer/comments{/number}","issue_comment_url":"https://api.github.com/repos/pbs/django-filer/issues/comments{/number}","contents_url":"https://api.github.com/repos/pbs/django-filer/contents/{+path}","compare_url":"https://api.github.com/repos/pbs/django-filer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pbs/django-filer/merges","archive_url":"https://api.github.com/repos/pbs/django-filer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pbs/django-filer/downloads","issues_url":"https://api.github.com/repos/pbs/django-filer/issues{/number}","pulls_url":"https://api.github.com/repos/pbs/django-filer/pulls{/number}","milestones_url":"https://api.github.com/repos/pbs/django-filer/milestones{/number}","notifications_url":"https://api.github.com/repos/pbs/django-filer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pbs/django-filer/labels{/name}","releases_url":"https://api.github.com/repos/pbs/django-filer/releases{/id}","deployments_url":"https://api.github.com/repos/pbs/django-filer/deployments","created_at":"2013-04-04T09:28:54Z","updated_at":"2015-04-08T08:56:00Z","pushed_at":"2016-09-12T06:40:11Z","git_url":"git://github.com/pbs/django-filer.git","ssh_url":"git@github.com:pbs/django-filer.git","clone_url":"https://github.com/pbs/django-filer.git","svn_url":"https://github.com/pbs/django-filer","homepage":"https://github.com/stefanfoulis/django-filer/wiki","size":5811,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master_pbs"}},"_links":{"self":{"href":"https://api.github.com/repos/pbs/django-filer/pulls/100"},"html":{"href":"https://github.com/pbs/django-filer/pull/100"},"issue":{"href":"https://api.github.com/repos/pbs/django-filer/issues/100"},"comments":{"href":"https://api.github.com/repos/pbs/django-filer/issues/100/comments"},"review_comments":{"href":"https://api.github.com/repos/pbs/django-filer/pulls/100/comments"},"review_comment":{"href":"https://api.github.com/repos/pbs/django-filer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pbs/django-filer/pulls/100/commits"},"statuses":{"href":"https://api.github.com/repos/pbs/django-filer/statuses/ac8c72a8def1f29379c1afcded4184d198bf0935"}}}}
{"actor":{"display_login":"zoliszeredi"}}