id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 2629,[patch] permission_required for auth.decorators,dummy@…,Adrian Holovaty,"The idea for this decorator came up when I looked the auth docs and saw complicated python code (for me:) like this: my_view = user_passes_test(lambda u: u.has_perm('polls.can_vote'), login_url='/login/')(my_view) As this code is for documentation purpose, I could also could rewrite it shorten and more user politely like this: my_view = permission_required('polls.can_vote')(my_view) ",enhancement,closed,Contrib apps,dev,normal,fixed,,,Unreviewed,1,0,0,0,0,0