summaryrefslogtreecommitdiff
path: root/tests/inline_formsets
diff options
context:
space:
mode:
authorVajrasky Kok <sky.kok@speaklikeaking.com>2013-11-24 21:12:22 +0800
committerTim Graham <timograham@gmail.com>2014-02-06 05:16:40 -0500
commitd3cf6cfacfb828faad4f4f97c904e259304649b3 (patch)
treeae44bc63cc45a144edbec26bb5590b8225e70233 /tests/inline_formsets
parentb22d6c47a7e4c7ab26a8b7b033d11fa6743aae86 (diff)
downloaddjango-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.py2
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')