Skip to content

Instantly share code, notes, and snippets.

@leopard627
Created May 19, 2017 05:24
Show Gist options
  • Save leopard627/084efc1b289e2e9f183511f59ebf3f4f to your computer and use it in GitHub Desktop.
Save leopard627/084efc1b289e2e9f183511f59ebf3f4f to your computer and use it in GitHub Desktop.
test
# 보면 이런식으로 여러줄의 라인을 한 줄로 만들 수 있습니다.
# style 1
current_id = return_response.data["id"]
current_banking = LOLOBanking.objects.get(id=current_id)
current_banking.related_id = withdraw_account_id
current_banking.withdraw_type = withdraw_type
current_banking.bank_type = wa.bank_type
current_banking.save
# STYLE 2
current_banking = LOLOBanking.objects.filter(
id=current_id).update(
related_id=withdraw_account_id,
withdraw_type=withdraw_type,
bank_type=wa.bank_type)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment