Tony Mack | 387a73f | 2013-09-18 07:59:14 -0400 | [diff] [blame^] | 1 | from core.models import User |
2 | from observer.deleter import Deleter | ||||
3 | |||||
4 | class 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() |