Fixed #15124 -- Changed the default for BooleanField.

Thanks to the many contributors who updated and improved the patch over
the life of this ticket.
This commit is contained in:
Aymeric Augustin 2013-03-24 13:47:01 +01:00
parent ae417dd4d5
commit e16c48e001
6 changed files with 37 additions and 7 deletions

View file

@ -181,11 +181,11 @@ class ModelInheritanceTest(TestCase):
"""
Regression test for #6755
"""
r = Restaurant(serves_pizza=False)
r = Restaurant(serves_pizza=False, serves_hot_dogs=False)
r.save()
self.assertEqual(r.id, r.place_ptr_id)
orig_id = r.id
r = Restaurant(place_ptr_id=orig_id, serves_pizza=True)
r = Restaurant(place_ptr_id=orig_id, serves_pizza=True, serves_hot_dogs=False)
r.save()
self.assertEqual(r.id, orig_id)
self.assertEqual(r.id, r.place_ptr_id)