api(minor): fix invalid fieldls being selected
This commit is contained in:
parent
540419d5c1
commit
3bd56ce522
|
@ -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):
|
||||||
|
|
|
@ -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):
|
||||||
|
|
Reference in New Issue