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