summaryrefslogtreecommitdiff
path: root/tests/serializers
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2020-07-20 09:48:31 +0200
committerGitHub <noreply@github.com>2020-07-20 09:48:31 +0200
commit83f55aafdd635189c010cff403f66b54d695921a (patch)
treeba3f3244e4300bc055555f7693363f28fa885169 /tests/serializers
parent730711e8282893723f993f55d3e3b0c823cfdb9a (diff)
downloaddjango-83f55aafdd635189c010cff403f66b54d695921a.tar.gz
Fixed #17653 -- Allowed using zero as AutoFields value on MySQL if NO_AUTO_VALUE_ON_ZERO SQL mode is enabled.
Diffstat (limited to 'tests/serializers')
-rw-r--r--tests/serializers/test_data.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/serializers/test_data.py b/tests/serializers/test_data.py
index 1ddba02565..323cb13e82 100644
--- a/tests/serializers/test_data.py
+++ b/tests/serializers/test_data.py
@@ -379,8 +379,8 @@ if connection.features.interprets_empty_strings_as_nulls:
data[3] is None)]
# Regression test for #8651 -- a FK to an object with PK of 0
-# This won't work on MySQL since it won't let you create an object
-# with an autoincrement primary key of 0,
+# This won't work on MySQL without the NO_AUTO_VALUE_ON_ZERO SQL mode since it
+# won't let you create an object with an autoincrement primary key of 0.
if connection.features.allows_auto_pk_0:
test_data.extend([
(data_obj, 0, Anchor, "Anchor 0"),