diff --git a/core/apps/wherehouse/serializers/wherehouse.py b/core/apps/wherehouse/serializers/wherehouse.py index caafe1d..b01ef0f 100644 --- a/core/apps/wherehouse/serializers/wherehouse.py +++ b/core/apps/wherehouse/serializers/wherehouse.py @@ -56,6 +56,7 @@ class WhereHouseUpdateSerializer(serializers.ModelSerializer): users = validated_data.pop('users', None) if users is not None: + instance.users.clear() instance.users.set(users) instance.save() return instance