Skip to content
Snippets Groups Projects
Verified Commit ca7b0698 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Merge branch 'master' of edugit.org:AlekSIS/official/AlekSIS-App-LDAP

parents e41b4f0c 57d717ba
No related branches found
No related tags found
No related merge requests found
......@@ -155,6 +155,6 @@ class LDAPGroupSyncOwnerAttrType(ChoicePreference):
class LDAPPersonSyncOnLogin(BooleanPreference):
section = ldap
name = "person_sync_on_login"
default = "true"
default = True
required = False
verbose_name = _("Sync LDAP user with person on login")
......@@ -29,7 +29,8 @@ TQDM_DEFAULTS = {
def setting_name_from_field(model, field):
"""Generate a setting name from a model field."""
return f"additional_field_{model._meta.label}_{field.name}"
part_1 = model._meta.label_lower.replace(".", "_")
return f"additional_field_{part_1}_{field.name}"
def syncable_fields(model):
......
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