{"action":"opened","issue":{"url":"https://api.github.com/repos/django-guardian/django-guardian/issues/465","repository_url":"https://api.github.com/repos/django-guardian/django-guardian","labels_url":"https://api.github.com/repos/django-guardian/django-guardian/issues/465/labels{/name}","comments_url":"https://api.github.com/repos/django-guardian/django-guardian/issues/465/comments","events_url":"https://api.github.com/repos/django-guardian/django-guardian/issues/465/events","html_url":"https://github.com/django-guardian/django-guardian/issues/465","id":187295864,"number":465,"title":"get_obj_perms don't work outside block","user":{"login":"florian-prd","id":23257616,"avatar_url":"https://avatars.githubusercontent.com/u/23257616?v=3","gravatar_id":"","url":"https://api.github.com/users/florian-prd","html_url":"https://github.com/florian-prd","followers_url":"https://api.github.com/users/florian-prd/followers","following_url":"https://api.github.com/users/florian-prd/following{/other_user}","gists_url":"https://api.github.com/users/florian-prd/gists{/gist_id}","starred_url":"https://api.github.com/users/florian-prd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/florian-prd/subscriptions","organizations_url":"https://api.github.com/users/florian-prd/orgs","repos_url":"https://api.github.com/users/florian-prd/repos","events_url":"https://api.github.com/users/florian-prd/events{/privacy}","received_events_url":"https://api.github.com/users/florian-prd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-04T10:10:45Z","updated_at":"2016-11-04T10:10:45Z","closed_at":null,"body":"Hello,\r\nI don't know if this is a feature or not bug `get_obj_perms`  does not work when extending a base template and outside of a block:\r\n`{% extends \"base.html\" %}{% load staticfiles %}{% load guardian_tags %}\r\n{% get_obj_perms request.user for report as \"report_perms\" %}\r\n{% block main %}\r\n{% if \"edit_report\" in report_perms %}\r\n...\r\n    `\r\nresults in (coming from the if section)\r\n\r\n`Exception while resolving variable 'report_perms' in template 'report/detail_report.html'`\r\n\r\nwhile this works\r\n`{% extends \"base.html\" %}{% load staticfiles %}{% load guardian_tags %}\r\n{% block main %}\r\n    {% get_obj_perms request.user for report as \"report_perms\" %}\r\n    {% if \"edit_report\" in report_perms %}`\r\nRegards"}}
{"actor":{"display_login":"florian-prd"}}