Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed #26678 -- Doc'd that RelatedManager.add()/remove()/set() accepts the field the relation points to. #11245

Merged
merged 2 commits into from May 7, 2019

Conversation

rixx
Copy link
Contributor

@rixx rixx commented Apr 17, 2019

@rixx rixx force-pushed the ticket_26678 branch 4 times, most recently from 5007330 to afd0b52 Compare April 17, 2019 20:01
@rixx
Copy link
Contributor Author

rixx commented Apr 17, 2019

As suggested by @charettes, I made some changes in the tests I provided.

Copy link
Member

@felixxm felixxm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rixx Thanks for this patch 🚀 I left some comments. Can we squash the last two commits with extra tests? Can we also move tests added in the m2m_and_m2o/tests.py to the many_to_many/tests.py? I think that's the right place for them.

docs/ref/models/relations.txt Outdated Show resolved Hide resolved
docs/ref/models/relations.txt Outdated Show resolved Hide resolved
tests/m2m_and_m2o/tests.py Outdated Show resolved Hide resolved
tests/m2m_and_m2o/tests.py Outdated Show resolved Hide resolved
tests/m2m_and_m2o/tests.py Outdated Show resolved Hide resolved
tests/m2m_and_m2o/tests.py Outdated Show resolved Hide resolved
@felixxm felixxm changed the title Fixed #26678 -- Documented primary key use in .add/.remove Fixed #26678 -- Doc'd that RelatedManager.add()/remove()/set() accepts the field the relation points to. May 1, 2019
@felixxm
Copy link
Member

felixxm commented May 1, 2019

.. and as a part of the first commit, can we fix comments for _add_items()?

@felixxm felixxm self-assigned this May 1, 2019
@rixx
Copy link
Contributor Author

rixx commented May 3, 2019

.. and as a part of the first commit, can we fix comments for _add_items()?

What do you mean by that?

I moved the tests around, should look better now.

@rixx rixx force-pushed the ticket_26678 branch 2 times, most recently from d502635 to bf8b2d5 Compare May 6, 2019 17:58
@felixxm felixxm merged commit 0e2ed4f into django:master May 7, 2019
@rixx rixx deleted the ticket_26678 branch May 7, 2019 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants