fix unique constraint check for project perm
This commit is contained in:
parent
5e6bd1a4ef
commit
c394bc17d9
4 changed files with 9 additions and 6 deletions
|
@ -62,7 +62,9 @@ class ProjectPermissionForm(PermissionForm):
|
|||
|
||||
class Meta:
|
||||
model = ProjectPermission
|
||||
fields = [ 'grantee_type', 'grantee_id' ]
|
||||
# project is required for the unicity check
|
||||
fields = [ 'project', 'grantee_type', 'grantee_id' ]
|
||||
widgets = {
|
||||
'project': HiddenInput,
|
||||
'grantee_id': HiddenInput,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue