mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
users: Fix incorrect replacement of _()
Apologies for the regression.
This commit is contained in:
parent
d144f6634a
commit
44ec564fd7
@ -78,7 +78,7 @@ class CreateUserForm(UserCreationForm):
|
||||
self.request,
|
||||
_('Failed to add new user to %s group.') % group)
|
||||
|
||||
group_object, _ = Group.objects.get_or_create(name=group)
|
||||
group_object, created = Group.objects.get_or_create(name=group)
|
||||
group_object.user_set.add(user)
|
||||
|
||||
return user
|
||||
@ -97,7 +97,7 @@ class UserUpdateForm(forms.ModelForm):
|
||||
|
||||
def __init__(self, request, username, *args, **kwargs):
|
||||
"""Initialize the form with extra request argument."""
|
||||
for group, _ in GROUP_CHOICES:
|
||||
for group, group_name in GROUP_CHOICES:
|
||||
Group.objects.get_or_create(name=group)
|
||||
|
||||
self.request = request
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user