mirror of
https://github.com/inventree/InvenTree.git
synced 2026-07-04 06:00:38 +00:00
Skip "many" fields in DataExport (#12255)
- Exporting multi-dimensional datasets requires a custom exporter
This commit is contained in:
@@ -99,6 +99,10 @@ class DataExportSerializerMixin:
|
|||||||
fields.update(self.get_child_fields(name, field))
|
fields.update(self.get_child_fields(name, field))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
# Skip 'many' fields (e.g. nested serializers)
|
||||||
|
if getattr(field, 'many', False):
|
||||||
|
continue
|
||||||
|
|
||||||
fields[name] = field
|
fields[name] = field
|
||||||
|
|
||||||
return fields
|
return fields
|
||||||
|
|||||||
Reference in New Issue
Block a user