From b093c269c76e35aec9ea6982e33856ea61f00337 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Thu, 1 Feb 2024 12:15:50 -0800 Subject: [PATCH] Apply suggestion from code review --- src/documents/serialisers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/documents/serialisers.py b/src/documents/serialisers.py index f3c006e41..0839a14b5 100644 --- a/src/documents/serialisers.py +++ b/src/documents/serialisers.py @@ -726,7 +726,7 @@ class DocumentSerializer( context.get("request").method == "PATCH" or context.get("request").method == "PUT" ): - kwargs.__setitem__("full_perms", True) + kwargs["full_perms"] = True super().__init__(*args, **kwargs)