Browse Source

Add

pull/530/head
ibuler 8 years ago
parent
commit
9518672ad2
  1. 1
      apps/users/models/group.py

1
apps/users/models/group.py

@ -23,6 +23,7 @@ class UserGroup(NoDeleteModelMixin, Group):
return self.name
def delete(self, using=None, keep_parents=False):
self.group_ptr.delete()
if self.name != 'Default':
self.users.clear()
return super(UserGroup, self).delete()

Loading…
Cancel
Save