PZ
attribute = ПервыйСериализатор()
, если нужна вложенностьSize: a a a
PZ
attribute = ПервыйСериализатор()
, если нужна вложенностьb
PZ
b
b
PZ
b
print({'data': user_data.data})получаю
TypeError: 'int' object is not iterable
PZ
print({'data': user_data.data})получаю
TypeError: 'int' object is not iterable
PZ
b
TypeError: 'AddressBookAttribute' object is not iterableв items лежит:
PZ
TypeError: 'AddressBookAttribute' object is not iterableв items лежит:
attribute = AddressBookAttributeSerializer(many=True)
many отсюда убери, откуда он тут взялся?b
AttributeError: Got AttributeError when attempting to get a value for field `attribute` on serializer `AddressBookAttributeSerializer`.
The serializer field might be named incorrectly and not match any attribute or key on the `AddressBookAttribute` instance.
b
attribute = AddressBookAttributeSerializer(many=True)
many отсюда убери, откуда он тут взялся?b
AttributeError: Got AttributeError when attempting to get a value for field `attribute` on serializer `AddressBookSettingsSerializer`.
The serializer field might be named incorrectly and not match any attribute or key on the `QuerySet` instance.
Original exception text was: 'QuerySet' object has no attribute 'attribute'.
PZ
AttributeError: Got AttributeError when attempting to get a value for field `attribute` on serializer `AddressBookSettingsSerializer`.
The serializer field might be named incorrectly and not match any attribute or key on the `QuerySet` instance.
Original exception text was: 'QuerySet' object has no attribute 'attribute'.
PZ
AttributeError: Got AttributeError when attempting to get a value for field `attribute` on serializer `AddressBookSettingsSerializer`.
The serializer field might be named incorrectly and not match any attribute or key on the `QuerySet` instance.
Original exception text was: 'QuerySet' object has no attribute 'attribute'.
b
PZ