Add group management to user editing form.

This commit is contained in:
James Valleroy authored and Sunil Mohan Adapa committed 2015-07-13 19:50:58 +05:30
1 parent 197c95a7bf
commit 0eb3d35b5b
8 files changed
+104 -52

No files matched your search

+3
View File
@@ -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