.
def after_login_callback(_, user_row):
# Fetch the reseller_id from the auth_user record
if settings.DEBUG == True: print(user_row)
reseller_id = user_row['reseller_id']
# Add reseller_id to the auth.user object
auth.session['reseller_id'] = reseller_id