mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-03 17:05:18 +00:00
Skip "many" fields in DataExport (#12255)
- Exporting multi-dimensional datasets requires a custom exporter
This commit is contained in:
1 parent
496b20e08f
commit
39b74c7e87
1 file changed
+4
@@ -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