Add args back in to serializer

This commit is contained in:
Matthias 2022-05-06 00:48:20 +02:00
parent 28b8e27698
commit ccefaade92
No known key found for this signature in database
GPG Key ID: AB6D0E6C4CB65093

View File

@ -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):