8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-30 08:32:26 +00:00

Delete LDAPUser when full archiving a single user.

This commit is contained in:
klafyvel 2019-03-17 19:30:30 +01:00
parent 682803cca4
commit 2e2c72a9c3

View file

@ -618,6 +618,7 @@ class User(RevMixin, FieldPermissionModelMixin, AbstractBaseUser,
"""Full Archive = Archive + Service access complete deletion""" """Full Archive = Archive + Service access complete deletion"""
self.archive() self.archive()
self.delete_data() self.delete_data()
LdapUser.objects.filter(name__in=self.pseudo)
def unarchive(self): def unarchive(self):
"""Unfilling the user""" """Unfilling the user"""