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

Merge branch 'prefetch_related' into 'master'

Deactivate select_related in ldap_sync_from_groups()

See merge request !29
parents a6be0405 18540d28
No related branches found
No related tags found
1 merge request!29Deactivate select_related in ldap_sync_from_groups()
Pipeline #4219 failed
......@@ -282,7 +282,7 @@ def ldap_sync_from_groups(group_infos):
# FIXME FInd a way to throw exceptions correctly but still continue import
try:
with transaction.atomic():
group, created = Group.objects.update_or_create(
group, created = Group.objects.select_related(None).update_or_create(
ldap_dn=ldap_group[0].lower(),
defaults={"short_name": short_name, "name": name},
)
......
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