Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed the tests from [8033] to work for the PostgreSQL backends (the …

…primary

key value isn't guaranteed to be the same across all backends). Still some
breakage on MySQL because of the way it treats booleans, but that's another
issue.

Refs #6755.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8051 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 0e9587fd6b180d0a752ae77d3adb5e7966cb65b4 1 parent 6ef47cf
@malcolmt malcolmt authored
Showing with 8 additions and 10 deletions.
  1. +8 −10 tests/regressiontests/model_inheritance_regress/models.py
View
18 tests/regressiontests/model_inheritance_regress/models.py
@@ -162,16 +162,14 @@ class Child(Parent):
# 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
"""}
Please sign in to comment.
Something went wrong with that request. Please try again.