3.4.3 Adding Relational Fields to Our Models

When we wrote our models in the two previous sections, we did not include the relationships between models that we had so carefully defined. In this section, we connect our models.

We had outlined the following:

Image A one-to-many relationship pointing news links to startups

Image A many-to-many relationship between startups and tags

Image A many-to-many relationship between blog posts and tags

A many-to-many relationship ...

Get Django Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.