scripts/fetch_name_gender.py
author anoop
Mon, 02 Aug 2010 21:23:37 +0530
branchanoop
changeset 206 f2d738abba0d
parent 204 a190811581a8
permissions -rw-r--r--
made the previous feature more easier with lists.

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()