Skip to content
Snippets Groups Projects
Verified Commit e2fc70d0 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Do not consider relations for LDAP synchronisation

parent c6e6578c
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,8 @@ def setting_name_from_field(model, field):
def syncable_fields(model):
""" Collect all fields that can be synced on a model """
return [field for field in model._meta.fields if field.editable and not field.auto_created]
return [field for field in model._meta.fields if (
field.editable and not field.auto_created and not field.is_relation)]
def from_ldap(value, field):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment