We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b02a2f commit 78a5090Copy full SHA for 78a5090
source/presentations/session08.rst
@@ -208,14 +208,14 @@ fall into.
208
* a longer description
209
* a relationship to the Post model
210
211
-.. code-block:: python
+ .. code-block:: python
212
213
- # in models.py
214
- class Category(models.Model):
215
- name = models.CharField(max_length=128)
216
- description = models.TextField(blank=True)
217
- posts = models.ManyToManyField(Post, blank=True, null=True,
218
- related_name='categories')
+ # in models.py
+ class Category(models.Model):
+ name = models.CharField(max_length=128)
+ description = models.TextField(blank=True)
+ posts = models.ManyToManyField(Post, blank=True, null=True,
+ related_name='categories')
219
220
221
.. nextslide:: Strange Relationships
0 commit comments