Advertisement
Guest User

Untitled

a guest
Sep 18th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. countries = markets.get('Countries')
  2. objs = [
  3. SkyMarkets(
  4. code=market['Code'],
  5. name=market['Name']
  6. )
  7. for market in countries
  8. ]
  9. SkyMarkets.objects.bulk_create(objs)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement