Test OldStyleModel with external_id field.
(db)
| 28 | |
| 29 | @pytest.mark.asyncio |
| 30 | async def test_basic_oldstyle(db): |
| 31 | """Test OldStyleModel with external_id field.""" |
| 32 | obj = await OldStyleModel.create(external_id=123) |
| 33 | assert obj.pk |
| 34 | |
| 35 | assert OldStyleModel._meta.fields_map["id"].pk |
| 36 | assert OldStyleModel._meta.fields_map["external_id"].index |
nothing calls this directly
no test coverage detected
searching dependent graphs…