blob: f2509939f156fbb6bf701b9b5110e49569ebb805 [file] [log] [blame]
Tony Mack387a73f2013-09-18 07:59:14 -04001from core.models import User
2from observer.deleter import Deleter
3
4class UserDeleter(Deleter):
5 model='User'
6
7 def call(self, pk):
8 user = User.objects.get(pk=pk)
9 if user.kuser_id:
10 self.driver.delete_user(user.kuser_id)
11 user.delete()