SHARE
TWEET

a

a guest Jan 20th, 2020 102 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     for i in range(1, 8):
  2.  
  3.         place_i = data.get('place_{}'.format(i), '')
  4.         map_info_i = data.get('map_info_{}'.format(i), '')
  5.         is_accept_reservation_i = data.get('is_accept_reservation_{}'.format(i), '')
  6.         limit_i = data.get('limit_{}'.format(i), '')
  7.  
  8.         instance_date.orientation_id = instance.id
  9.         instance_date.place = place_i
  10.         instance_date.map_info = map_info_i
  11.         instance_date.is_accept_reservation = is_accept_reservation_i
  12.         instance_date.limit = limit_i
  13.         instance_date.save()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top