Mercurial > public > sg101
comparison gpp/podcast/models.py @ 143:1ed461fd2030
Podcast enhancements for #39. Provide channel level keyword support. Provide an alternate download URL so we can support both m4a and mp3 formats.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 06 Dec 2009 21:28:31 +0000 |
parents | dbd703f7d63a |
children | 76ad86454ce9 |
comparison
equal
deleted
inserted
replaced
142:f6904149a233 | 143:1ed461fd2030 |
---|---|
22 owner_name = models.CharField(max_length=64) | 22 owner_name = models.CharField(max_length=64) |
23 owner_email = models.EmailField() | 23 owner_email = models.EmailField() |
24 image = models.ImageField(upload_to='podcast') | 24 image = models.ImageField(upload_to='podcast') |
25 category = models.CharField(max_length=64) | 25 category = models.CharField(max_length=64) |
26 explicit = models.CharField(max_length=8, choices=EXPLICIT_CHOICES) | 26 explicit = models.CharField(max_length=8, choices=EXPLICIT_CHOICES) |
27 keywords = models.CharField(max_length=255) | |
27 | 28 |
28 def __unicode__(self): | 29 def __unicode__(self): |
29 return self.title | 30 return self.title |
30 | 31 |
31 | 32 |
35 title = models.CharField(max_length=255) | 36 title = models.CharField(max_length=255) |
36 author = models.CharField(max_length=255) | 37 author = models.CharField(max_length=255) |
37 subtitle = models.CharField(max_length=255) | 38 subtitle = models.CharField(max_length=255) |
38 summary = models.TextField() | 39 summary = models.TextField() |
39 enclosure_url = models.URLField(verify_exists=False) | 40 enclosure_url = models.URLField(verify_exists=False) |
41 alt_enclosure_url = models.URLField(verify_exists=False, blank=True) | |
40 enclosure_length = models.IntegerField() | 42 enclosure_length = models.IntegerField() |
41 enclosure_type = models.CharField(max_length=32) | 43 enclosure_type = models.CharField(max_length=32) |
42 guid = models.CharField(max_length=255) | 44 guid = models.CharField(max_length=255) |
43 pubdate = models.DateTimeField() | 45 pubdate = models.DateTimeField() |
44 duration = models.CharField(max_length=16) | 46 duration = models.CharField(max_length=16) |