mirror of
https://github.com/django/django.git
synced 2025-08-30 07:17:49 +00:00
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:
parent
ae417dd4d5
commit
e16c48e001
6 changed files with 37 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue