summaryrefslogtreecommitdiff
path: root/tests/model_fields
diff options
context:
space:
mode:
authorLoic Bistuer <loic.bistuer@gmail.com>2015-02-14 01:55:36 +0700
committerLoic Bistuer <loic.bistuer@gmail.com>2015-02-14 02:42:06 +0700
commit20b621eb3c3dd947a4fe77a2a11264b9072ef25c (patch)
treeab328b430a46eaedd13139ddf17323835f5e4300 /tests/model_fields
parent136edac8974ff0b570ce0a3e66e7aadf542225f0 (diff)
[1.8.x] Fixed #24289 -- Reversed usage of Field.many_to_one and one_to_many.
Thanks Carl Meyer and Tim Graham for the reviews and to all involved in the discussion. Backport of 18c0aaa9123579375294fcc4a8ee7e3530176b88 from master
Diffstat (limited to 'tests/model_fields')
-rw-r--r--tests/model_fields/test_field_flags.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/model_fields/test_field_flags.py b/tests/model_fields/test_field_flags.py
index 3749e55452..e86ee3a528 100644
--- a/tests/model_fields/test_field_flags.py
+++ b/tests/model_fields/test_field_flags.py
@@ -31,22 +31,22 @@ RELATION_FIELDS = (
GenericRelation,
)
-ONE_TO_MANY_CLASSES = {
+MANY_TO_MANY_CLASSES = {
+ ManyToManyField,
+}
+
+MANY_TO_ONE_CLASSES = {
ForeignObject,
ForeignKey,
GenericForeignKey,
}
-MANY_TO_ONE_CLASSES = {
+ONE_TO_MANY_CLASSES = {
ForeignObjectRel,
ManyToOneRel,
GenericRelation,
}
-MANY_TO_MANY_CLASSES = {
- ManyToManyField,
-}
-
ONE_TO_ONE_CLASSES = {
OneToOneField,
}