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 | 9ab39aa630941add109f12463ab809fe69ee9a79 (patch) | |
tree | 3ad2f61d172721dd0595e199dfe3554b7abdec43 | |
parent | 73450fd64ccebe7a085c939bdc81ad7597d7b4ea (diff) | |
download | Ishtar-9ab39aa630941add109f12463ab809fe69ee9a79.tar.bz2 Ishtar-9ab39aa630941add109f12463ab809fe69ee9a79.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: |