mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
Add group management to user editing form.
This commit is contained in:
1 parent
197c95a7bf
commit
0eb3d35b5b
8 files changed
+104
-52
No files matched your search
@@ -80,6 +80,9 @@ than 63 characters in length.'),
|
||||
messages.error(self.request,
|
||||
_('Failed to add new user to admin group.'))
|
||||
|
||||
g = Group.objects.create(name='admin')
|
||||
g.user_set.add(user)
|
||||
|
||||
self.login_user()
|
||||
|
||||
return user
|
||||
|
||||
Reference in new issue
Block a user