Skip to content

Commit

Permalink
Fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
matyldv committed May 10, 2024
1 parent 6263431 commit 664222d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ralph/accounts/ldap.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

from dj.choices import Country
from django.conf import settings
from django.contrib.auth.models import Group
from django.dispatch import receiver
from django.utils.encoding import force_text
from django_auth_ldap.backend import _LDAPUser, LDAPSettings, populate_user
Expand Down Expand Up @@ -56,6 +55,7 @@ def mirror_groups(self):
self._user.groups.values_list('name', flat=True).iterator()
)
if target_group_names != current_group_names:
from django.contrib.auth.models import Group
logger.info('Modifing user groups: current = {}, target = {}'.format(
', '.join(current_group_names), ', '.join(target_group_names)
))
Expand Down

0 comments on commit 664222d

Please sign in to comment.