]> git.parisson.com Git - diggersdigest.git/commitdiff
Fix FileBrowser selection for audio files
authorThomas Fillon <thomas@parisson.com>
Wed, 19 Aug 2015 17:00:56 +0000 (19:00 +0200)
committerThomas Fillon <thomas@parisson.com>
Wed, 19 Aug 2015 17:00:56 +0000 (19:00 +0200)
diggersdigest/diggersdigest/settings.py
diggersdigest/records/models.py

index 4e9926e6ce4e4e1113f74dac5e4b0988c93ea3bf..8d379b7476e735501a5393b75e03de622fd1c9ba 100644 (file)
@@ -149,7 +149,7 @@ from django.utils.translation import ugettext_lazy as _
 
 # 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.
index be7ab1bd0a466423b061a9aeb4d6fb016685efea..f0f5cfc18f606d158c453658d19d1a6cc81b15ad 100644 (file)
@@ -193,7 +193,7 @@ class Record(Product):
     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):
@@ -201,5 +201,5 @@ class Record(Product):
 
 
 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"))