Mercurial > public > sg101
diff podcast/models.py @ 1206:02181fa5ac9d modernize tip
Update to Django 1.9.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 22 Jan 2025 17:58:16 -0600 |
parents | e932f2ecd4a7 |
children |
line wrap: on
line diff
--- a/podcast/models.py Sat Jan 04 21:34:31 2025 -0600 +++ b/podcast/models.py Wed Jan 22 17:58:16 2025 -0600 @@ -38,7 +38,7 @@ class Item(models.Model): """Model to represent a channel item""" - channel = models.ForeignKey(Channel) + channel = models.ForeignKey(Channel, on_delete=models.CASCADE) title = models.CharField(max_length=255) author = models.CharField(max_length=255) subtitle = models.CharField(max_length=255)