# Setting to turn on featured images for blog posts. Defaults to False.
#
-# BLOG_USE_FEATURED_IMAGE = True
+BLOG_USE_FEATURED_IMAGE = True
# If True, the django-modeltranslation will be added to the
# INSTALLED_APPS setting.
desc = models.TextField()
cover = models.IntegerField() # TODO : choices=GRADINGS)
vinyl = models.IntegerField() # TODO : choices=GRADING)
- audio = FileField(_("Audio File"), max_length=200, format="Audio",
+ audio = FileField(_("Audio File"), max_length=200, format="media",
upload_to=upload_to("records.Record.audio", "audio/records"))
def __unicode__(self):
class Podcast(BlogPost):
- audio = FileField(_("Audio File"), max_length=200, format="Audio",
+ audio = FileField(verbose_name=_("Audio File"), max_length=200, format="media",
upload_to=upload_to("records.Podcast.audio", "audio/mixes"))