Skip to content

Instantly share code, notes, and snippets.

@yoandresaav
Created September 7, 2019 17:00
Show Gist options
  • Save yoandresaav/350c4eaa37de581b07c447f54e1cda98 to your computer and use it in GitHub Desktop.
Save yoandresaav/350c4eaa37de581b07c447f54e1cda98 to your computer and use it in GitHub Desktop.
countries = markets.get('Countries')
objs = [
SkyMarkets(
code=market['Code'],
name=market['Name']
)
for market in countries
]
SkyMarkets.objects.bulk_create(objs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment