From ccefaade926d78d04c1de42df63261dee165c94a Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 6 May 2022 00:48:20 +0200 Subject: [PATCH] Add args back in to serializer --- InvenTree/common/serializers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/InvenTree/common/serializers.py b/InvenTree/common/serializers.py index f8cb2b6bd3..9d637c3e39 100644 --- a/InvenTree/common/serializers.py +++ b/InvenTree/common/serializers.py @@ -112,7 +112,7 @@ class GenericReferencedSettingSerializer(SettingsSerializer): MODEL = None EXTRA_FIELDS = None - def __init__(self, **kwargs): + def __init__(self, *args, **kwargs): """Init overrides the Meta class to make it dynamic""" class CustomMeta: """Scaffold for custom Meta class""" @@ -133,7 +133,7 @@ class GenericReferencedSettingSerializer(SettingsSerializer): self.Meta.fields.extend(self.EXTRA_FIELDS) # resume operations - super().__init__(**kwargs) + super().__init__(*args, **kwargs) class NotificationMessageSerializer(InvenTreeModelSerializer):