summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2011-03-04 19:45:03 +0100
committerÉtienne Loks <etienne.loks@peacefrogs.net>2011-03-04 19:45:03 +0100
commit56d224a18ef18ab05c6eff97f1570abed068acea (patch)
treefb51c67d09ac1ef78f2106168c71cbf93c1f613f
parentdf77b7b296b6089b615955730e12f1bbd2a74f06 (diff)
downloadIshtar-56d224a18ef18ab05c6eff97f1570abed068acea.tar.bz2
Ishtar-56d224a18ef18ab05c6eff97f1570abed068acea.zip
Correct CSV export (closes #248)
-rw-r--r--ishtar/furnitures/views.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ishtar/furnitures/views.py b/ishtar/furnitures/views.py
index 59faeca47..77e4c6a6c 100644
--- a/ishtar/furnitures/views.py
+++ b/ishtar/furnitures/views.py
@@ -148,6 +148,8 @@ def get_item(model, func_name, default_name, extra_request_keys=[]):
Generic treatment of tables
"""
def func(request, data_type='json', **dct):
+ if 'type' in dct:
+ data_type = dct.pop('type')
if not data_type:
data_type = 'json'
fields = [model._meta.get_field_by_name(k)[0]