{"action":"created","comment":{"url":"https://api.github.com/repos/Bcfg2/bcfg2/pulls/comments/40718105","id":40718105,"diff_hunk":"@@ -394,6 +394,13 @@ def __init__(self, sort_key, text):\n         self.sort_key = template.Variable(sort_key)\n         self.text = template.Variable(text)\n \n+    def _render_template(self, context):\n+        if django.VERSION[0] == 1 and django.VERSION[1] >= 8:\n+            return context.template.engine.from_string(self.__TMPL__)\n+        else:\n+            from django.template.loader import get_template_from_string","path":"src/lib/Bcfg2/Reporting/templatetags/bcfg2_tags.py","position":21,"original_position":21,"commit_id":"b42fa30b4652bfc47b782d9aeee4a1f3ddfd0c88","original_commit_id":"b42fa30b4652bfc47b782d9aeee4a1f3ddfd0c88","user":{"login":"stpierre","id":632407,"avatar_url":"https://avatars.githubusercontent.com/u/632407?v=3","gravatar_id":"","url":"https://api.github.com/users/stpierre","html_url":"https://github.com/stpierre","followers_url":"https://api.github.com/users/stpierre/followers","following_url":"https://api.github.com/users/stpierre/following{/other_user}","gists_url":"https://api.github.com/users/stpierre/gists{/gist_id}","starred_url":"https://api.github.com/users/stpierre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stpierre/subscriptions","organizations_url":"https://api.github.com/users/stpierre/orgs","repos_url":"https://api.github.com/users/stpierre/repos","events_url":"https://api.github.com/users/stpierre/events{/privacy}","received_events_url":"https://api.github.com/users/stpierre/received_events","type":"User","site_admin":false},"body":"Can we move this import outside of the function? Then we can get away from the version comparison, too.","created_at":"2015-09-29T19:35:03Z","updated_at":"2015-09-29T19:35:03Z","html_url":"https://github.com/Bcfg2/bcfg2/pull/311#discussion_r40718105","pull_request_url":"https://api.github.com/repos/Bcfg2/bcfg2/pulls/311","_links":{"self":{"href":"https://api.github.com/repos/Bcfg2/bcfg2/pulls/comments/40718105"},"html":{"href":"https://github.com/Bcfg2/bcfg2/pull/311#discussion_r40718105"},"pull_request":{"href":"https://api.github.com/repos/Bcfg2/bcfg2/pulls/311"}}},"pull_request":{"url":"https://api.github.com/repos/Bcfg2/bcfg2/pulls/311","id":45656091,"html_url":"https://github.com/Bcfg2/bcfg2/pull/311","diff_url":"https://github.com/Bcfg2/bcfg2/pull/311.diff","patch_url":"https://github.com/Bcfg2/bcfg2/pull/311.patch","issue_url":"https://api.github.com/repos/Bcfg2/bcfg2/issues/311","number":311,"state":"open","locked":false,"title":"make Bcfg2-web compatible with django 1.7","user":{"login":"AlexanderS","id":149450,"avatar_url":"https://avatars.githubusercontent.com/u/149450?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexanderS","html_url":"https://github.com/AlexanderS","followers_url":"https://api.github.com/users/AlexanderS/followers","following_url":"https://api.github.com/users/AlexanderS/following{/other_user}","gists_url":"https://api.github.com/users/AlexanderS/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexanderS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexanderS/subscriptions","organizations_url":"https://api.github.com/users/AlexanderS/orgs","repos_url":"https://api.github.com/users/AlexanderS/repos","events_url":"https://api.github.com/users/AlexanderS/events{/privacy}","received_events_url":"https://api.github.com/users/AlexanderS/received_events","type":"User","site_admin":false},"body":"This replaces #282.\r\n\r\nI squashed the commits by @feuri a bit for cleanup, added the functionality to update from south to django migrations and clean up the django handling.\r\n\r\nThe upgrade from any 1.3.x version and any future version to the new django migrations should be possible (if the names of the migrations of south and django match).","created_at":"2015-09-22T12:19:17Z","updated_at":"2015-09-29T19:35:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f2304eabc7467172acc346f160136a90ad78dde2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Bcfg2/bcfg2/pulls/311/commits","review_comments_url":"https://api.github.com/repos/Bcfg2/bcfg2/pulls/311/comments","review_comment_url":"https://api.github.com/repos/Bcfg2/bcfg2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Bcfg2/bcfg2/issues/311/comments","statuses_url":"https://api.github.com/repos/Bcfg2/bcfg2/statuses/b42fa30b4652bfc47b782d9aeee4a1f3ddfd0c88","head":{"label":"AlexanderS:fix/django1.7","ref":"fix/django1.7","sha":"b42fa30b4652bfc47b782d9aeee4a1f3ddfd0c88","user":{"login":"AlexanderS","id":149450,"avatar_url":"https://avatars.githubusercontent.com/u/149450?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexanderS","html_url":"https://github.com/AlexanderS","followers_url":"https://api.github.com/users/AlexanderS/followers","following_url":"https://api.github.com/users/AlexanderS/following{/other_user}","gists_url":"https://api.github.com/users/AlexanderS/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexanderS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexanderS/subscriptions","organizations_url":"https://api.github.com/users/AlexanderS/orgs","repos_url":"https://api.github.com/users/AlexanderS/repos","events_url":"https://api.github.com/users/AlexanderS/events{/privacy}","received_events_url":"https://api.github.com/users/AlexanderS/received_events","type":"User","site_admin":false},"repo":{"id":9811329,"name":"bcfg2","full_name":"AlexanderS/bcfg2","owner":{"login":"AlexanderS","id":149450,"avatar_url":"https://avatars.githubusercontent.com/u/149450?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexanderS","html_url":"https://github.com/AlexanderS","followers_url":"https://api.github.com/users/AlexanderS/followers","following_url":"https://api.github.com/users/AlexanderS/following{/other_user}","gists_url":"https://api.github.com/users/AlexanderS/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexanderS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexanderS/subscriptions","organizations_url":"https://api.github.com/users/AlexanderS/orgs","repos_url":"https://api.github.com/users/AlexanderS/repos","events_url":"https://api.github.com/users/AlexanderS/events{/privacy}","received_events_url":"https://api.github.com/users/AlexanderS/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AlexanderS/bcfg2","description":"Git clone of the Bcfg2 repository","fork":true,"url":"https://api.github.com/repos/AlexanderS/bcfg2","forks_url":"https://api.github.com/repos/AlexanderS/bcfg2/forks","keys_url":"https://api.github.com/repos/AlexanderS/bcfg2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AlexanderS/bcfg2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AlexanderS/bcfg2/teams","hooks_url":"https://api.github.com/repos/AlexanderS/bcfg2/hooks","issue_events_url":"https://api.github.com/repos/AlexanderS/bcfg2/issues/events{/number}","events_url":"https://api.github.com/repos/AlexanderS/bcfg2/events","assignees_url":"https://api.github.com/repos/AlexanderS/bcfg2/assignees{/user}","branches_url":"https://api.github.com/repos/AlexanderS/bcfg2/branches{/branch}","tags_url":"https://api.github.com/repos/AlexanderS/bcfg2/tags","blobs_url":"https://api.github.com/repos/AlexanderS/bcfg2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AlexanderS/bcfg2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AlexanderS/bcfg2/git/refs{/sha}","trees_url":"https://api.github.com/repos/AlexanderS/bcfg2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AlexanderS/bcfg2/statuses/{sha}","languages_url":"https://api.github.com/repos/AlexanderS/bcfg2/languages","stargazers_url":"https://api.github.com/repos/AlexanderS/bcfg2/stargazers","contributors_url":"https://api.github.com/repos/AlexanderS/bcfg2/contributors","subscribers_url":"https://api.github.com/repos/AlexanderS/bcfg2/subscribers","subscription_url":"https://api.github.com/repos/AlexanderS/bcfg2/subscription","commits_url":"https://api.github.com/repos/AlexanderS/bcfg2/commits{/sha}","git_commits_url":"https://api.github.com/repos/AlexanderS/bcfg2/git/commits{/sha}","comments_url":"https://api.github.com/repos/AlexanderS/bcfg2/comments{/number}","issue_comment_url":"https://api.github.com/repos/AlexanderS/bcfg2/issues/comments{/number}","contents_url":"https://api.github.com/repos/AlexanderS/bcfg2/contents/{+path}","compare_url":"https://api.github.com/repos/AlexanderS/bcfg2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AlexanderS/bcfg2/merges","archive_url":"https://api.github.com/repos/AlexanderS/bcfg2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AlexanderS/bcfg2/downloads","issues_url":"https://api.github.com/repos/AlexanderS/bcfg2/issues{/number}","pulls_url":"https://api.github.com/repos/AlexanderS/bcfg2/pulls{/number}","milestones_url":"https://api.github.com/repos/AlexanderS/bcfg2/milestones{/number}","notifications_url":"https://api.github.com/repos/AlexanderS/bcfg2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AlexanderS/bcfg2/labels{/name}","releases_url":"https://api.github.com/repos/AlexanderS/bcfg2/releases{/id}","created_at":"2013-05-02T11:00:10Z","updated_at":"2015-01-14T22:19:43Z","pushed_at":"2015-09-29T15:44:35Z","git_url":"git://github.com/AlexanderS/bcfg2.git","ssh_url":"git@github.com:AlexanderS/bcfg2.git","clone_url":"https://github.com/AlexanderS/bcfg2.git","svn_url":"https://github.com/AlexanderS/bcfg2","homepage":"http://bcfg2.org","size":15952,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"maint"}},"base":{"label":"Bcfg2:master","ref":"master","sha":"5b0a2d1ba24a210a66a91cc1755f4e24fd8a9b7f","user":{"login":"Bcfg2","id":1238150,"avatar_url":"https://avatars.githubusercontent.com/u/1238150?v=3","gravatar_id":"","url":"https://api.github.com/users/Bcfg2","html_url":"https://github.com/Bcfg2","followers_url":"https://api.github.com/users/Bcfg2/followers","following_url":"https://api.github.com/users/Bcfg2/following{/other_user}","gists_url":"https://api.github.com/users/Bcfg2/gists{/gist_id}","starred_url":"https://api.github.com/users/Bcfg2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bcfg2/subscriptions","organizations_url":"https://api.github.com/users/Bcfg2/orgs","repos_url":"https://api.github.com/users/Bcfg2/repos","events_url":"https://api.github.com/users/Bcfg2/events{/privacy}","received_events_url":"https://api.github.com/users/Bcfg2/received_events","type":"Organization","site_admin":false},"repo":{"id":2905220,"name":"bcfg2","full_name":"Bcfg2/bcfg2","owner":{"login":"Bcfg2","id":1238150,"avatar_url":"https://avatars.githubusercontent.com/u/1238150?v=3","gravatar_id":"","url":"https://api.github.com/users/Bcfg2","html_url":"https://github.com/Bcfg2","followers_url":"https://api.github.com/users/Bcfg2/followers","following_url":"https://api.github.com/users/Bcfg2/following{/other_user}","gists_url":"https://api.github.com/users/Bcfg2/gists{/gist_id}","starred_url":"https://api.github.com/users/Bcfg2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bcfg2/subscriptions","organizations_url":"https://api.github.com/users/Bcfg2/orgs","repos_url":"https://api.github.com/users/Bcfg2/repos","events_url":"https://api.github.com/users/Bcfg2/events{/privacy}","received_events_url":"https://api.github.com/users/Bcfg2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Bcfg2/bcfg2","description":"Git clone of the Bcfg2 repository","fork":false,"url":"https://api.github.com/repos/Bcfg2/bcfg2","forks_url":"https://api.github.com/repos/Bcfg2/bcfg2/forks","keys_url":"https://api.github.com/repos/Bcfg2/bcfg2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Bcfg2/bcfg2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Bcfg2/bcfg2/teams","hooks_url":"https://api.github.com/repos/Bcfg2/bcfg2/hooks","issue_events_url":"https://api.github.com/repos/Bcfg2/bcfg2/issues/events{/number}","events_url":"https://api.github.com/repos/Bcfg2/bcfg2/events","assignees_url":"https://api.github.com/repos/Bcfg2/bcfg2/assignees{/user}","branches_url":"https://api.github.com/repos/Bcfg2/bcfg2/branches{/branch}","tags_url":"https://api.github.com/repos/Bcfg2/bcfg2/tags","blobs_url":"https://api.github.com/repos/Bcfg2/bcfg2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Bcfg2/bcfg2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Bcfg2/bcfg2/git/refs{/sha}","trees_url":"https://api.github.com/repos/Bcfg2/bcfg2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Bcfg2/bcfg2/statuses/{sha}","languages_url":"https://api.github.com/repos/Bcfg2/bcfg2/languages","stargazers_url":"https://api.github.com/repos/Bcfg2/bcfg2/stargazers","contributors_url":"https://api.github.com/repos/Bcfg2/bcfg2/contributors","subscribers_url":"https://api.github.com/repos/Bcfg2/bcfg2/subscribers","subscription_url":"https://api.github.com/repos/Bcfg2/bcfg2/subscription","commits_url":"https://api.github.com/repos/Bcfg2/bcfg2/commits{/sha}","git_commits_url":"https://api.github.com/repos/Bcfg2/bcfg2/git/commits{/sha}","comments_url":"https://api.github.com/repos/Bcfg2/bcfg2/comments{/number}","issue_comment_url":"https://api.github.com/repos/Bcfg2/bcfg2/issues/comments{/number}","contents_url":"https://api.github.com/repos/Bcfg2/bcfg2/contents/{+path}","compare_url":"https://api.github.com/repos/Bcfg2/bcfg2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Bcfg2/bcfg2/merges","archive_url":"https://api.github.com/repos/Bcfg2/bcfg2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Bcfg2/bcfg2/downloads","issues_url":"https://api.github.com/repos/Bcfg2/bcfg2/issues{/number}","pulls_url":"https://api.github.com/repos/Bcfg2/bcfg2/pulls{/number}","milestones_url":"https://api.github.com/repos/Bcfg2/bcfg2/milestones{/number}","notifications_url":"https://api.github.com/repos/Bcfg2/bcfg2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Bcfg2/bcfg2/labels{/name}","releases_url":"https://api.github.com/repos/Bcfg2/bcfg2/releases{/id}","created_at":"2011-12-03T14:26:50Z","updated_at":"2015-09-23T23:29:33Z","pushed_at":"2015-09-29T18:03:00Z","git_url":"git://github.com/Bcfg2/bcfg2.git","ssh_url":"git@github.com:Bcfg2/bcfg2.git","clone_url":"https://github.com/Bcfg2/bcfg2.git","svn_url":"https://github.com/Bcfg2/bcfg2","homepage":"http://bcfg2.org","size":21898,"stargazers_count":69,"watchers_count":69,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":61,"mirror_url":null,"open_issues_count":32,"forks":61,"open_issues":32,"watchers":69,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Bcfg2/bcfg2/pulls/311"},"html":{"href":"https://github.com/Bcfg2/bcfg2/pull/311"},"issue":{"href":"https://api.github.com/repos/Bcfg2/bcfg2/issues/311"},"comments":{"href":"https://api.github.com/repos/Bcfg2/bcfg2/issues/311/comments"},"review_comments":{"href":"https://api.github.com/repos/Bcfg2/bcfg2/pulls/311/comments"},"review_comment":{"href":"https://api.github.com/repos/Bcfg2/bcfg2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Bcfg2/bcfg2/pulls/311/commits"},"statuses":{"href":"https://api.github.com/repos/Bcfg2/bcfg2/statuses/b42fa30b4652bfc47b782d9aeee4a1f3ddfd0c88"}}}}