From 3bd56ce522d3fab8558286b21e12c0041aca6e24 Mon Sep 17 00:00:00 2001 From: "Langhammer, Jens" Date: Thu, 7 Nov 2019 10:30:22 +0100 Subject: [PATCH] api(minor): fix invalid fieldls being selected --- passbook/factors/dummy/api.py | 2 +- passbook/sources/ldap/api.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/passbook/factors/dummy/api.py b/passbook/factors/dummy/api.py index f34de9e93..96f9c0beb 100644 --- a/passbook/factors/dummy/api.py +++ b/passbook/factors/dummy/api.py @@ -11,7 +11,7 @@ class DummyFactorSerializer(ModelSerializer): class Meta: model = DummyFactor - fields = ['pk', 'name', 'slug', 'order', 'enabled', '__type__'] + fields = ['pk', 'name', 'slug', 'order', 'enabled'] class DummyFactorViewSet(ModelViewSet): diff --git a/passbook/sources/ldap/api.py b/passbook/sources/ldap/api.py index 09470b48b..1c8983a9a 100644 --- a/passbook/sources/ldap/api.py +++ b/passbook/sources/ldap/api.py @@ -37,7 +37,7 @@ class LDAPPropertyMappingSerializer(ModelSerializer): class Meta: model = LDAPPropertyMapping - fields = SOURCE_SERIALIZER_FIELDS + ['name', 'ldap_property', 'object_field'] + fields = ['pk', 'name', 'ldap_property', 'object_field'] class LDAPSourceViewSet(ModelViewSet):