from aspen import Response

# ========================================================================== ^L

token = user.session_token
if token:
    user.session_token = None
    user.save()
back_to = request.headers.get('referer', '/')
request.redirect(back_to)

# ========================================================================== ^L
from aspen import Response

from gittip.orm import db

# ========================================================================== ^L

token = user.session_token
if token:
    user.session_token = None
    db.session.add(user)
    db.session.commit()
back_to = request.headers.get('referer', '/')
request.redirect(back_to)

# ========================================================================== ^L
Remove reference to a non-existent save method
Remove reference to a non-existent save method

Signed-off-by: Joonas Bergius <9be13466ab086d7a8db93edb14ffb6760790b15e@gmail.com>
