Skip to content

Instantly share code, notes, and snippets.

@SyNeto
Created May 30, 2016 20:13
Show Gist options
  • Save SyNeto/2c46076fca8f7f37e9adc3cf68e760c0 to your computer and use it in GitHub Desktop.
Save SyNeto/2c46076fca8f7f37e9adc3cf68e760c0 to your computer and use it in GitHub Desktop.
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