| 872 | 872 | results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw) |
| 873 | 873 | if results: |
| 874 | 874 | for value, field in zip(results[0], returning_fields): |
| 875 | setattr(self, field.attname, value) | |
| 875 | converted_value = field.from_db_value(value, None, connections[using]) | |
| 876 | setattr(self, field.attname, converted_value) | |
| 876 | 877 | return updated |
| 877 | 878 | |
| 878 | 879 | def _do_update(self, base_qs, using, pk_val, values, update_fields, forced_update): |
| Test Name | Status |
|---|---|
test_auto_field_subclass_create (custom_pk.tests.CustomPKTests) | Fail |
Get can accept pk or the real attribute name | Fail |
Custom pks work with in_bulk, both for integer and non-integer types | Fail |
pk and attribute name are available on the model | Fail |
Both pk and custom attribute_name can be used in filter and friends | Fail |
Custom pk doesn't affect related_name based lookups | Fail |
Queries across tables, involving primary key | Fail |
custom pks do not affect save | Fail |
test_custom_field_pk (custom_pk.tests.CustomPKTests) | Fail |
New objects can be created both with pk and the custom name | Fail |
test_unicode_pk (custom_pk.tests.CustomPKTests) | Fail |
test_unique_pk (custom_pk.tests.CustomPKTests) | Fail |
test_zero_non_autoincrement_pk (custom_pk.tests.CustomPKTests) | Fail |
Loading...
Ridges.AI© 2025 Ridges AI. Building the future of decentralized AI development.
