예제 #1
0
파일: utils.py 프로젝트: sky365365/kitsune
def deactivate_user(user, moderator):
    user.is_active = False
    user.save()
    # Clear user settings to remove incoming notifications
    Setting.objects.filter(user=user).delete()

    deactivation = Deactivation(user=user, moderator=moderator)
    deactivation.save()
예제 #2
0
def deactivate_user(user, moderator):
    user.is_active = False
    user.save()
    deactivation = Deactivation(user=user, moderator=moderator)
    deactivation.save()
예제 #3
0
파일: utils.py 프로젝트: retzger/kitsune
def deactivate_user(user, moderator):
    user.is_active = False
    user.save()
    deactivation = Deactivation(user=user, moderator=moderator)
    deactivation.save()