summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorparth2012-04-26 19:54:56 +0530
committerparth2012-04-26 19:54:56 +0530
commitf6e15deabda00865fc6303b20b912c4997a27c99 (patch)
tree2fd4480025baa1fe06f72b7e361e88700573850a
parent8033c75af75bf1893ce28db4a137a016f723f05a (diff)
downloadaloha-f6e15deabda00865fc6303b20b912c4997a27c99.tar.gz
aloha-f6e15deabda00865fc6303b20b912c4997a27c99.tar.bz2
aloha-f6e15deabda00865fc6303b20b912c4997a27c99.zip
Modified dumpcsv management command to include cagetory as well
-rw-r--r--aloha/allotter/management/commands/dumpcsv.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/aloha/allotter/management/commands/dumpcsv.py b/aloha/allotter/management/commands/dumpcsv.py
index 1be1b60..e1c8778 100644
--- a/aloha/allotter/management/commands/dumpcsv.py
+++ b/aloha/allotter/management/commands/dumpcsv.py
@@ -14,7 +14,7 @@ class Command(BaseCommand):
def dump_csv():
application = Application.objects.all()
csvWriter = writer(open('csvdump.csv', 'w'), delimiter=":")
- csvWriter.writerow(['RegNo.','np','option_selected'])
+ csvWriter.writerow(['RegNo.','np','cat', 'option_selected'])
for users in application:
- csvWriter.writerow([users.user, users.np, users.options_selected])
+ csvWriter.writerow([users.user, users.np,users.cgy, users.options_selected])