'Removes the lockout counters (normally called after a successful login)'

@classmethod
def clear_lockout_counter(cls, user):

    try:
        entry = cls._get_record_for_user(user)
        entry.delete()
    except ObjectDoesNotExist:
        return
