comparison 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
comparison
equal deleted inserted replaced
1205:510ef3cbf3e6 1206:02181fa5ac9d
36 return self.title 36 return self.title
37 37
38 38
39 class Item(models.Model): 39 class Item(models.Model):
40 """Model to represent a channel item""" 40 """Model to represent a channel item"""
41 channel = models.ForeignKey(Channel) 41 channel = models.ForeignKey(Channel, on_delete=models.CASCADE)
42 title = models.CharField(max_length=255) 42 title = models.CharField(max_length=255)
43 author = models.CharField(max_length=255) 43 author = models.CharField(max_length=255)
44 subtitle = models.CharField(max_length=255) 44 subtitle = models.CharField(max_length=255)
45 summary = models.TextField() 45 summary = models.TextField()
46 enclosure_url = models.URLField() 46 enclosure_url = models.URLField()