api(minor): fix invalid fieldls being selected

This commit is contained in:
Langhammer, Jens 2019-11-07 10:30:22 +01:00
parent 540419d5c1
commit 3bd56ce522
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ class DummyFactorSerializer(ModelSerializer):
class Meta: class Meta:
model = DummyFactor model = DummyFactor
fields = ['pk', 'name', 'slug', 'order', 'enabled', '__type__'] fields = ['pk', 'name', 'slug', 'order', 'enabled']
class DummyFactorViewSet(ModelViewSet): class DummyFactorViewSet(ModelViewSet):

View File

@ -37,7 +37,7 @@ class LDAPPropertyMappingSerializer(ModelSerializer):
class Meta: class Meta:
model = LDAPPropertyMapping model = LDAPPropertyMapping
fields = SOURCE_SERIALIZER_FIELDS + ['name', 'ldap_property', 'object_field'] fields = ['pk', 'name', 'ldap_property', 'object_field']
class LDAPSourceViewSet(ModelViewSet): class LDAPSourceViewSet(ModelViewSet):