Skip to content

Instantly share code, notes, and snippets.

@samirbr
Last active February 1, 2016 20:35
Show Gist options
  • Save samirbr/1566fe5fc84288fd21d2 to your computer and use it in GitHub Desktop.
Save samirbr/1566fe5fc84288fd21d2 to your computer and use it in GitHub Desktop.
if isinstance(dados, dict):
Passagens126.objects.create(**to_kwargs(dados))
else:
for item in dados:
print(item)
Passagens126.objects.create(**to_kwargs(item))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment