(self)
| 1671 | self.assertEqual(obj.person.details.data, "d2") |
| 1672 | |
| 1673 | def test_order_by_resetting(self): |
| 1674 | # Calling order_by() with no parameters removes any existing ordering |
| 1675 | # on the model. But it should still be possible to add new ordering |
| 1676 | # after that. |
| 1677 | qs = Author.objects.order_by().order_by("name") |
| 1678 | self.assertIn("ORDER BY", qs.query.get_compiler(qs.db).as_sql()[0]) |
| 1679 | |
| 1680 | def test_order_by_reverse_fk(self): |
| 1681 | # It is possible to order by reverse of foreign key, although that can |
nothing calls this directly
no test coverage detected