scripts/fetch_name_gender.py
author Madhusudan.C.S <madhusudancs@fossee.in>
Mon, 02 Aug 2010 18:02:52 +0530
branchanoop
changeset 204 a190811581a8
permissions -rw-r--r--
Added a script to generate CSV of full name and gender of participants who have confirmed participation.

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