diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2015-11-17 18:50:51 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2015-11-17 18:50:51 +0100 |
commit | 394f3f7f5e649a2fbc762b3f2d4c38154942c61d (patch) | |
tree | 3ad2f61d172721dd0595e199dfe3554b7abdec43 | |
parent | 1aa7193ce1c114da66cf2214964f32bce5afa3e1 (diff) | |
download | Ishtar-394f3f7f5e649a2fbc762b3f2d4c38154942c61d.tar.bz2 Ishtar-394f3f7f5e649a2fbc762b3f2d4c38154942c61d.zip |
CSV export: add many to many to full CSV export
-rw-r--r-- | ishtar_common/views.py | 2 |
1 files changed, 2 insertions, 0 deletions
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: |