GitHub PullRequestReviewCommentEvent at 2014-03-03 11:45:05
Repository: django-guardian
Actor: lukaszb
Payload: {"comment":{"url":"https://api.github.com/repos/lukaszb/django-guardian/pulls/comments/10207624","id":10207624,"diff_hunk":"@@ -81,4 +81,17 @@ def get_user_permission_codename(perm):\n except NameError:\n     basestring = unicode = str = str\n \n+# Django 1.7 compatibility\n+# create_permission API changed: skip the create_models (second\n+# positional argument) if we have django 1.7+ and 2+ positional\n+# arguments with the second one being a list/tuple \n+def create_permissions(*args, **kwargs):\n+    from django.contrib.auth.management import create_permissions as original_create_permissions\n+    import django\n+\n+    if django.get_version().split('.')[:2] >= ['1','7'] and \\","path":"guardian/compat.py","position":12,"original_position":12,"commit_id":"0b915309308543225aae8e380f07c50747e2e232","original_commit_id":"0b915309308543225aae8e380f07c50747e2e232","user":{"login":"lukaszb","id":190381,"avatar_url":"https://avatars.githubusercontent.com/u/190381","gravatar_id":"e9713ac84ec5002229dc81eba8cd5c37","url":"https://api.github.com/users/lukaszb","html_url":"https://github.com/lukaszb","followers_url":"https://api.github.com/users/lukaszb/followers","following_url":"https://api.github.com/users/lukaszb/following{/other_user}","gists_url":"https://api.github.com/users/lukaszb/gists{/gist_id}","starred_url":"https://api.github.com/users/lukaszb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukaszb/subscriptions","organizations_url":"https://api.github.com/users/lukaszb/orgs","repos_url":"https://api.github.com/users/lukaszb/repos","events_url":"https://api.github.com/users/lukaszb/events{/privacy}","received_events_url":"https://api.github.com/users/lukaszb/received_events","type":"User","site_admin":false},"body":"Checking Django version could be done simpler `django.VERSION >= (1, 7)`","created_at":"2014-03-03T11:45:05Z","updated_at":"2014-03-03T11:45:05Z","html_url":"https://github.com/lukaszb/django-guardian/pull/196#discussion_r10207624","pull_request_url":"https://api.github.com/repos/lukaszb/django-guardian/pulls/196","_links":{"self":{"href":"https://api.github.com/repos/lukaszb/django-guardian/pulls/comments/10207624"},"html":{"href":"https://github.com/lukaszb/django-guardian/pull/196#discussion_r10207624"},"pull_request":{"href":"https://api.github.com/repos/lukaszb/django-guardian/pulls/196"}}}}