Created
May 30, 2016 20:13
-
-
Save SyNeto/2c46076fca8f7f37e9adc3cf68e760c0 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
bp = BeautyParlor.objects.exclude(chain_profile = None) | |
file = open('/home/kerastasesalon/reporte.txt', 'w+') | |
for parlor in bp: | |
file.write("{}, {}\n".format(parlor.pk, parlor.comercial_name.encode('utf-8'))) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment