diff options
| author | Loic Bistuer <loic.bistuer@gmail.com> | 2015-02-14 01:55:36 +0700 |
|---|---|---|
| committer | Loic Bistuer <loic.bistuer@gmail.com> | 2015-02-14 02:28:24 +0700 |
| commit | 18c0aaa9123579375294fcc4a8ee7e3530176b88 (patch) | |
| tree | 00547fa5e4b2f3f975a11ddd8203fe971f5f95c2 /tests | |
| parent | 5c995dcfc251b55284e1ef16545acd2acad6be04 (diff) | |
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.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/model_fields/test_field_flags.py | 12 |
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, } |
