﻿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
28156	User.has_perm always returns False for a custom permission inherited from group	Vasili Korol	nobody	"I define a custom permission in one of my models (in application called 'tasks'):

{{{
class Task ( models.Model ) :
    ...
    class Meta :
         permissions = ( ( ""Can run tasks on the local server"", ""run_task_locally"" ), )
}}}

In the admin interface, I grant this permission to one of the auth groups.
Now, for all users, belonging to this group,  {{{user.has_perm( ""tasks.run_task_locally"" )}}} is {{{False}}}. If the permission is granted for each user individually (not through the group), or if it's a supersuser, then {{{user.has_perm}}} returns {{{True}}}. 

I do not observe this problem with standard model permissions like ''appname.add_modelname'' or ''appname.change_modelname''.

Running Django 1.8.18 on Python 3.4.3 using default authentication backend.
"	Bug	closed	contrib.auth	1.8	Normal	invalid	permissions		Unreviewed	0	0	0	0	0	0
