diff options
| author | Johannes Hoppe <info@johanneshoppe.com> | 2019-07-24 08:42:41 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-09-09 10:51:14 +0200 |
| commit | 7254f1138d9c51fa558229c39c9559b369c4278a (patch) | |
| tree | fc375187018082446c90deb772ac3ce96406c13b /tests/model_meta | |
| parent | 736e7d44de395b867011ff9237dc5fdcfd28ee66 (diff) | |
Refs #29444 -- Allowed returning multiple fields from INSERT statements on PostgreSQL.
Thanks Florian Apolloner, Tim Graham, Simon Charette, Nick Pope, and
Mariusz Felisiak for reviews.
Diffstat (limited to 'tests/model_meta')
| -rw-r--r-- | tests/model_meta/tests.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/model_meta/tests.py b/tests/model_meta/tests.py index 7867f4c620..0a3049c6dc 100644 --- a/tests/model_meta/tests.py +++ b/tests/model_meta/tests.py @@ -279,3 +279,8 @@ class PropertyNamesTests(SimpleTestCase): # Instance only descriptors don't appear in _property_names. self.assertEqual(AbstractPerson().test_instance_only_descriptor, 1) self.assertEqual(AbstractPerson._meta._property_names, frozenset(['pk', 'test_property'])) + + +class ReturningFieldsTests(SimpleTestCase): + def test_pk(self): + self.assertEqual(Relation._meta.db_returning_fields, [Relation._meta.pk]) |
