diff --git a/tests/regressiontests/model_inheritance_regress/models.py b/tests/regressiontests/model_inheritance_regress/models.py index 3f4fa04b77..0a812cf5ed 100644 --- a/tests/regressiontests/model_inheritance_regress/models.py +++ b/tests/regressiontests/model_inheritance_regress/models.py @@ -162,16 +162,14 @@ DoesNotExist: ItalianRestaurant matching query does not exist. # Regression test for #6755 >>> r = Restaurant(serves_pizza=False) >>> r.save() ->>> r.id -3 ->>> r.place_ptr_id -3 ->>> r = Restaurant(place_ptr_id=3, serves_pizza=True) +>>> r.id == r.place_ptr_id +True +>>> orig_id = r.id +>>> r = Restaurant(place_ptr_id=orig_id, serves_pizza=True) >>> r.save() ->>> r.id -3 ->>> r.place_ptr_id -3 - +>>> r.id == orig_id +True +>>> r.id == r.place_ptr_id +True """}