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:
|
||||
|
||||
model = DummyFactor
|
||||
fields = ['pk', 'name', 'slug', 'order', 'enabled', '__type__']
|
||||
fields = ['pk', 'name', 'slug', 'order', 'enabled']
|
||||
|
||||
|
||||
class DummyFactorViewSet(ModelViewSet):
|
||||
|
|
|
@ -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):
|
||||
|
|
Reference in New Issue