D
Size: a a a
D
AK
D
DT
DT
AK
AK
AK
AK
A
DO
class PropertySerializer(serializers.ModelSerializer):
mp = AccountingPointSerializer(read_only=True)
list_properties = ListPropertiesSerializer(read_only=True)
class Meta:
model = Property
fields = ('list_properties', 'value', 'mp')
property_instance = PropertySerializer(
data={
"mp": accounting_point_instance,
"list_properties": list_properties,
"value": str(value),
}
)
property_instance.is_valid(raise_exception=True)
property_instance.save()
django.db.utils.IntegrityError: NOT NULL constraint failed: tko_property.list_properties_id
КК
цц
цц
цц
НК
цц
цц
цц
цц