Skip to content

Conversation

@timgraham
Copy link
Member

@charettes
Copy link
Member

charettes commented Apr 27, 2016

As a Chapter can only be part of one Book (which is not the case with Author) I would use a ForeignKey(Book, related_name='chapters') instead of a ManyToManyField unless you think the usage of related_name makes it harder to follow.

… guide.

Thanks Ankush Thakur for the report and Simon for the review.
@timgraham
Copy link
Member Author

Good point, on second thought, we can just use an existing relationship to one of the other models.

@charettes
Copy link
Member

LGTM

@timgraham timgraham merged commit fe70f28 into django:master Apr 27, 2016
@timgraham timgraham deleted the 25136 branch April 27, 2016 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants