From b100f148ea227c74f169828a1c61bb0d3d031036 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 12 Oct 2021 05:27:28 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20fields=20being=20read-only?= =?UTF-8?q?=20with=20administrator=20privileges?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/sophon/core/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/sophon/core/models.py b/backend/sophon/core/models.py index 71fe901..70fbbd6 100644 --- a/backend/sophon/core/models.py +++ b/backend/sophon/core/models.py @@ -112,7 +112,7 @@ class SophonModel(models.Model): return set.difference( cls.get_fields(), - cls.get_administrable_fields(), + cls.get_administrable_fields().union(cls.get_editable_fields()), ) @abc.abstractmethod