scripts/fetch_name_gender.py
author anoop
Thu, 19 Aug 2010 20:06:45 +0530
branchanoop
changeset 232 1bfac108ed6c
parent 204 a190811581a8
permissions -rw-r--r--
added link to Gallery.

from sdi.models import ParticipantInfo

f = open('names.txt', 'w')
for participant in participants:
    f.write('%s %s, %s\n' % (participant.participant.first_name, participant.participant.last_name, participant.participant.gender))

f.close()