Skip to content

Commit 44f816a

Browse files
committed
Fix multiple array field values
1 parent 9df7d9b commit 44f816a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

django_features/custom_fields/serializers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ def get_fields(self) -> dict[str, Any]:
9696
fields = super().get_fields()
9797
if self.exclude_custom_fields:
9898
return fields
99+
self._custom_fields = []
99100
custom_fields = list(CustomField.objects.for_model(self.model))
100101
for field in custom_fields:
101102
self._custom_fields.append(

django_features/serializers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def get_fields(self) -> dict[str, Any]:
5050
fields: dict[str, Any] = dict()
5151
nested_fields: dict[str, Any] = dict()
5252
nested_field_fields: dict[str, list[str]] = dict()
53+
self.related_fields: list = []
5354
for internal_name in self.mapping_fields:
5455
if internal_name in self.exclude:
5556
continue

0 commit comments

Comments
 (0)