From 94f21c062a5ec1f602109f448ee3385df07fa7b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Delobelle?= Date: Wed, 25 Oct 2017 03:12:22 +0200 Subject: [PATCH] SnippetCmsGroupForm should not clean previous permissions --- kfet/cms/forms.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kfet/cms/forms.py b/kfet/cms/forms.py index 7b38db17..f56d8892 100644 --- a/kfet/cms/forms.py +++ b/kfet/cms/forms.py @@ -62,6 +62,8 @@ class SnippetsCmsGroupForm(KeepUnselectableModelFormMixin, forms.ModelForm): queryset=Permission.kfetcms.all(), ) + keep_unselectable_fields = ['permissions'] + class Meta: model = Group fields = ('permissions',)