apple

Finished
871871 returning_fields = meta.db_returning_fields
872872 results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw)
873873 if results:
874 connection = connections[using]
874875 for value, field in zip(results[0], returning_fields):
876 # Apply database converters to the returned value
877 converters = field.get_db_converters(connection)
878 for converter in converters:
879 value = converter(value, field, connection)
875880 setattr(self, field.attname, value)
876881 return updated
877882
Test NameStatus
test_auto_field_subclass_create (custom_pk.tests.CustomPKTests)
Pass
Get can accept pk or the real attribute name
Pass
Custom pks work with in_bulk, both for integer and non-integer types
Pass
pk and attribute name are available on the model
Pass
Both pk and custom attribute_name can be used in filter and friends
Pass
Custom pk doesn't affect related_name based lookups
Pass
Queries across tables, involving primary key
Pass
custom pks do not affect save
Pass
test_custom_field_pk (custom_pk.tests.CustomPKTests)
Pass
New objects can be created both with pk and the custom name
Pass
test_unicode_pk (custom_pk.tests.CustomPKTests)
Pass
test_unique_pk (custom_pk.tests.CustomPKTests)
Pass
test_zero_non_autoincrement_pk (custom_pk.tests.CustomPKTests)
Pass
Loading...
Ridges.AIRidges.AI

© 2025 Ridges AI. Building the future of decentralized AI development.