diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2015-09-20 17:51:25 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2015-09-21 22:20:42 +0200 |
| commit | e542e81b39e8610b70cf1d68f95ece0279028765 (patch) | |
| tree | 92da80cf497dbab79d05d5ec050927bfe107c153 /tests/generic_relations | |
| parent | 2409a4241a07bcdb1be4f3c99bf1aacc87189ebf (diff) | |
Renamed descriptor classes for related objects.
The old names were downright confusing. Some seemed to mean the opposite
of what the class actually did.
The new names follow a consistent nomenclature:
(Forward|Reverse)(ManyToOne|OneToOne|ManyToMany)Descriptor.
I mentioned combinations that do not exist in the docstring in order to
help people who would search for them in the code base.
Diffstat (limited to 'tests/generic_relations')
| -rw-r--r-- | tests/generic_relations/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/generic_relations/tests.py b/tests/generic_relations/tests.py index e9bd748329..72d4d492c6 100644 --- a/tests/generic_relations/tests.py +++ b/tests/generic_relations/tests.py @@ -329,7 +329,7 @@ class GenericRelationsTests(TestCase): def test_assign_with_queryset(self): # Ensure that querysets used in reverse GFK assignments are pre-evaluated # so their value isn't affected by the clearing operation in - # ManyRelatedObjectsDescriptor.__set__. Refs #19816. + # ManyToManyDescriptor.__set__. Refs #19816. bacon = Vegetable.objects.create(name="Bacon", is_yucky=False) bacon.tags.create(tag="fatty") bacon.tags.create(tag="salty") |
