{"action":"closed","issue":{"url":"https://api.github.com/repos/django-wiki/django-wiki/issues/486","labels_url":"https://api.github.com/repos/django-wiki/django-wiki/issues/486/labels{/name}","comments_url":"https://api.github.com/repos/django-wiki/django-wiki/issues/486/comments","events_url":"https://api.github.com/repos/django-wiki/django-wiki/issues/486/events","html_url":"https://github.com/django-wiki/django-wiki/issues/486","id":114431896,"number":486,"title":"AJAX calls to revision diff and merge gives 500 server error","user":{"login":"myth","id":2415878,"avatar_url":"https://avatars.githubusercontent.com/u/2415878?v=3","gravatar_id":"","url":"https://api.github.com/users/myth","html_url":"https://github.com/myth","followers_url":"https://api.github.com/users/myth/followers","following_url":"https://api.github.com/users/myth/following{/other_user}","gists_url":"https://api.github.com/users/myth/gists{/gist_id}","starred_url":"https://api.github.com/users/myth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myth/subscriptions","organizations_url":"https://api.github.com/users/myth/orgs","repos_url":"https://api.github.com/users/myth/repos","events_url":"https://api.github.com/users/myth/events{/privacy}","received_events_url":"https://api.github.com/users/myth/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-31T20:28:08Z","updated_at":"2015-10-31T21:18:15Z","closed_at":"2015-10-31T21:18:15Z","body":"When viewing changes, clicking the version links gives 500 error, as the call to the diff() view function fails.\r\nThe same goes for merging of different versions.\r\n\r\nThe reason being that attaching a function pointer to a class is basically the same as\r\nassigning a new instance method to the class. Thus, the first method argument is 'self', which\r\nin this case is the URLPatterns object itself, when it should be the Django request object.\r\n\r\nA PR is coming up shortly."}}