Created
September 7, 2019 17:00
-
-
Save yoandresaav/350c4eaa37de581b07c447f54e1cda98 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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