diff options
author | Vajrasky Kok <sky.kok@speaklikeaking.com> | 2013-11-24 21:12:22 +0800 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2014-02-06 05:16:40 -0500 |
commit | d3cf6cfacfb828faad4f4f97c904e259304649b3 (patch) | |
tree | ae44bc63cc45a144edbec26bb5590b8225e70233 /tests/inline_formsets | |
parent | b22d6c47a7e4c7ab26a8b7b033d11fa6743aae86 (diff) | |
download | django-d3cf6cfacfb828faad4f4f97c904e259304649b3.tar.gz |
Fixed #17713 -- Renamed BaseDatabaseFeatures.allows_primary_key_0 to allows_auto_pk_0.
MySQL does allow primary key with value 0. It only forbids autoincrement
primary key with value 0.
Thanks Claude Paroz for the report.
Diffstat (limited to 'tests/inline_formsets')
-rw-r--r-- | tests/inline_formsets/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/inline_formsets/tests.py b/tests/inline_formsets/tests.py index 87add7f6e6..6f6bc76ac8 100644 --- a/tests/inline_formsets/tests.py +++ b/tests/inline_formsets/tests.py @@ -162,7 +162,7 @@ class InlineFormsetFactoryTest(TestCase): Parent, Child, exclude=('school',), fk_name='mother' ) - @skipUnlessDBFeature('allows_primary_key_0') + @skipUnlessDBFeature('allows_auto_pk_0') def test_zero_primary_key(self): # Regression test for #21472 poet = Poet.objects.create(id=0, name='test') |