[PATCH] models: Allow to unselect maintainer projects in user profile
thomas.monjalon at 6wind.com
Sun Jan 31 02:34:34 AEDT 2016
The admin page for user profiles have a field "Maintainer projects"
to grant maintainer rights to an user.
It is a list of available projects.
When a project was selected, it was impossible to revoke.
It is now possible to unselect by clicking while holding the "Ctrl" key.
Signed-off-by: Thomas Monjalon <thomas.monjalon at 6wind.com>
patchwork/models.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/patchwork/models.py b/patchwork/models.py
index 88af2f0..5686ec8 100644
@@ -111,7 +111,7 @@ class UserProfile(models.Model):
user = models.OneToOneField(User, unique=True, related_name='profile')
primary_project = models.ForeignKey(Project, null=True, blank=True)
maintainer_projects = models.ManyToManyField(
- Project, related_name='maintainer_project')
+ Project, related_name='maintainer_project', blank=True)
send_email = models.BooleanField(
help_text='Selecting this option allows patchwork to send email on'
More information about the Patchwork