From 2fae952edd7a7e0ce8af9c419b95236109f73326 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Norman=20J=C3=A4ckel?= Date: Tue, 8 Nov 2016 22:36:57 +0100 Subject: [PATCH] Fixed group update method. Fixed #2541. --- openslides/users/serializers.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/openslides/users/serializers.py b/openslides/users/serializers.py index fb5088543..d48d91ef8 100644 --- a/openslides/users/serializers.py +++ b/openslides/users/serializers.py @@ -128,3 +128,11 @@ class GroupSerializer(ModelSerializer): 'name', 'permissions', ) + + def update(self, *args, **kwargs): + """ + Customized update method. We just refresh the instance from the + database because of an unknown bug in Django REST framework. + """ + instance = super().update(*args, **kwargs) + return Group.objects.get(pk=instance.pk)