Commit 806550c1 authored by Mathieu Bridon's avatar Mathieu Bridon

radio: Remove the duration field

We won't have time to do anything nice with this, so let's at least not
cause confusion.

Fixes #7
parent 80b1b1e4
...@@ -129,6 +129,5 @@ class RadioForm(DocumentForm): ...@@ -129,6 +129,5 @@ class RadioForm(DocumentForm):
return return
# TODO: preview based on radio name and theme # TODO: preview based on radio name and theme
# TODO: can we automatically guess the duration?
return cleaned_data return cleaned_data
...@@ -8,7 +8,7 @@ msgid "" ...@@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-01-19 16:19+0000\n" "POT-Creation-Date: 2018-01-25 14:16+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
...@@ -43,31 +43,31 @@ msgstr "" ...@@ -43,31 +43,31 @@ msgstr ""
msgid "Text" msgid "Text"
msgstr "" msgstr ""
#: irfi/forms.py:55 #: irfi/forms.py:56
msgid "Audio or video file" msgid "Audio or video file"
msgstr "" msgstr ""
#: irfi/forms.py:56 #: irfi/forms.py:65
msgid "Object" msgid "Object"
msgstr "" msgstr ""
#: irfi/forms.py:58 #: irfi/forms.py:67
msgid "I want to publish an ad" msgid "I want to publish an ad"
msgstr "" msgstr ""
#: irfi/forms.py:60 #: irfi/forms.py:69
msgid "I want to leave a message" msgid "I want to leave a message"
msgstr "" msgstr ""
#: irfi/forms.py:67 #: irfi/forms.py:76
msgid "You must at least send a media or enter a text" msgid "You must at least send a media or enter a text"
msgstr "" msgstr ""
#: irfi/forms.py:78 #: irfi/forms.py:87
msgid "Only audio or video files are allowed" msgid "Only audio or video files are allowed"
msgstr "" msgstr ""
#: irfi/forms.py:116 #: irfi/forms.py:128
msgid "Only audio files are allowed" msgid "Only audio files are allowed"
msgstr "" msgstr ""
...@@ -127,10 +127,6 @@ msgstr "" ...@@ -127,10 +127,6 @@ msgstr ""
msgid "theme" msgid "theme"
msgstr "" msgstr ""
#: irfi/models.py:28
msgid "duration"
msgstr ""
#. Translators: Do not translate this, the translation is in Ideascube #. Translators: Do not translate this, the translation is in Ideascube
#: irfi/templates/blog/content_detail.html:7 #: irfi/templates/blog/content_detail.html:7
msgid "View all posts" msgid "View all posts"
...@@ -351,11 +347,11 @@ msgstr "" ...@@ -351,11 +347,11 @@ msgstr ""
msgid "Radio name cannot be empty" msgid "Radio name cannot be empty"
msgstr "" msgstr ""
#: irfi/views.py:188 #: irfi/views.py:185
msgid "Date" msgid "Date"
msgstr "" msgstr ""
#. Translators: Do not translate this, the translation is in Ideascube #. Translators: Do not translate this, the translation is in Ideascube
#: irfi/views.py:195 #: irfi/views.py:192
msgid "Title" msgid "Title"
msgstr "" msgstr ""
...@@ -8,7 +8,7 @@ msgid "" ...@@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-01-19 16:19+0000\n" "POT-Creation-Date: 2018-01-25 14:16+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Matthieu Gautier <mgautier@kymeria.fr>, 2018\n" "Last-Translator: Matthieu Gautier <mgautier@kymeria.fr>, 2018\n"
"Language-Team: French (https://www.transifex.com/ideascube/teams/32243/fr/)\n" "Language-Team: French (https://www.transifex.com/ideascube/teams/32243/fr/)\n"
...@@ -44,31 +44,31 @@ msgstr "Numéro de téléphone" ...@@ -44,31 +44,31 @@ msgstr "Numéro de téléphone"
msgid "Text" msgid "Text"
msgstr "Texte" msgstr "Texte"
#: irfi/forms.py:55 #: irfi/forms.py:56
msgid "Audio or video file" msgid "Audio or video file"
msgstr "Fichier audio ou vidéo" msgstr "Fichier audio ou vidéo"
#: irfi/forms.py:56 #: irfi/forms.py:65
msgid "Object" msgid "Object"
msgstr "Objet" msgstr "Objet"
#: irfi/forms.py:58 #: irfi/forms.py:67
msgid "I want to publish an ad" msgid "I want to publish an ad"
msgstr "Je veux publier une annonce" msgstr "Je veux publier une annonce"
#: irfi/forms.py:60 #: irfi/forms.py:69
msgid "I want to leave a message" msgid "I want to leave a message"
msgstr "Je veux laisser un témoignage" msgstr "Je veux laisser un témoignage"
#: irfi/forms.py:67 #: irfi/forms.py:76
msgid "You must at least send a media or enter a text" msgid "You must at least send a media or enter a text"
msgstr "Vous devez au minimum envoyer un média ou entrer un texte" msgstr "Vous devez au minimum envoyer un média ou entrer un texte"
#: irfi/forms.py:78 #: irfi/forms.py:87
msgid "Only audio or video files are allowed" msgid "Only audio or video files are allowed"
msgstr "Seuls les fichiers audio ou vidéo sont autorisés" msgstr "Seuls les fichiers audio ou vidéo sont autorisés"
#: irfi/forms.py:116 #: irfi/forms.py:128
msgid "Only audio files are allowed" msgid "Only audio files are allowed"
msgstr "Seuls les fichiers audios sont autorisés" msgstr "Seuls les fichiers audios sont autorisés"
...@@ -128,10 +128,6 @@ msgstr "date de diffusion" ...@@ -128,10 +128,6 @@ msgstr "date de diffusion"
msgid "theme" msgid "theme"
msgstr "thème" msgstr "thème"
#: irfi/models.py:28
msgid "duration"
msgstr "durée"
#. Translators: Do not translate this, the translation is in Ideascube #. Translators: Do not translate this, the translation is in Ideascube
#: irfi/templates/blog/content_detail.html:7 #: irfi/templates/blog/content_detail.html:7
msgid "View all posts" msgid "View all posts"
...@@ -359,11 +355,11 @@ msgstr "Le nom de la radio a été changé avec succès" ...@@ -359,11 +355,11 @@ msgstr "Le nom de la radio a été changé avec succès"
msgid "Radio name cannot be empty" msgid "Radio name cannot be empty"
msgstr "Le nom de la radio ne peut pas être vide" msgstr "Le nom de la radio ne peut pas être vide"
#: irfi/views.py:188 #: irfi/views.py:185
msgid "Date" msgid "Date"
msgstr "Date" msgstr "Date"
#. Translators: Do not translate this, the translation is in Ideascube #. Translators: Do not translate this, the translation is in Ideascube
#: irfi/views.py:195 #: irfi/views.py:192
msgid "Title" msgid "Title"
msgstr "" msgstr ""
# -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2018-01-25 14:13
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('irfi', '0002_auto_20180119_1617'),
]
operations = [
migrations.RemoveField(
model_name='radioshow',
name='duration',
),
]
...@@ -24,8 +24,6 @@ class RadioShow(Document): ...@@ -24,8 +24,6 @@ class RadioShow(Document):
air_date = models.DateField(verbose_name=_('air date')) air_date = models.DateField(verbose_name=_('air date'))
theme = models.CharField( theme = models.CharField(
verbose_name=_('theme'), max_length=255, choices=THEMES) verbose_name=_('theme'), max_length=255, choices=THEMES)
duration = models.DurationField(
verbose_name=_('duration'), blank=True, null=True)
objects = DocumentQuerySet.as_manager() objects = DocumentQuerySet.as_manager()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment