From 394f3f7f5e649a2fbc762b3f2d4c38154942c61d Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 17 Nov 2015 18:50:51 +0100 Subject: CSV export: add many to many to full CSV export --- ishtar_common/views.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ishtar_common') diff --git a/ishtar_common/views.py b/ishtar_common/views.py index ae319aa53..17da745e0 100644 --- a/ishtar_common/views.py +++ b/ishtar_common/views.py @@ -447,6 +447,8 @@ def get_item(model, func_name, default_name, extra_request_keys=[], if full: table_cols = [field.name for field in model._meta.fields if field.name not in PRIVATE_FIELDS] + table_cols += [field.name for field in model._meta.many_to_many + if field.name not in PRIVATE_FIELDS] if hasattr(model, 'EXTRA_FULL_FIELDS'): table_cols += model.EXTRA_FULL_FIELDS else: -- cgit v1.2.3