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):
return
# TODO: preview based on radio name and theme
# TODO: can we automatically guess the duration?
return cleaned_data
......@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\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"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -43,31 +43,31 @@ msgstr ""
msgid "Text"
msgstr ""
#: irfi/forms.py:55
#: irfi/forms.py:56
msgid "Audio or video file"
msgstr ""
#: irfi/forms.py:56
#: irfi/forms.py:65
msgid "Object"
msgstr ""
#: irfi/forms.py:58
#: irfi/forms.py:67
msgid "I want to publish an ad"
msgstr ""
#: irfi/forms.py:60
#: irfi/forms.py:69
msgid "I want to leave a message"
msgstr ""
#: irfi/forms.py:67
#: irfi/forms.py:76
msgid "You must at least send a media or enter a text"
msgstr ""
#: irfi/forms.py:78
#: irfi/forms.py:87
msgid "Only audio or video files are allowed"
msgstr ""
#: irfi/forms.py:116
#: irfi/forms.py:128
msgid "Only audio files are allowed"
msgstr ""
......@@ -127,10 +127,6 @@ msgstr ""
msgid "theme"
msgstr ""
#: irfi/models.py:28
msgid "duration"
msgstr ""
#. Translators: Do not translate this, the translation is in Ideascube
#: irfi/templates/blog/content_detail.html:7
msgid "View all posts"
......@@ -351,11 +347,11 @@ msgstr ""
msgid "Radio name cannot be empty"
msgstr ""
#: irfi/views.py:188
#: irfi/views.py:185
msgid "Date"
msgstr ""
#. Translators: Do not translate this, the translation is in Ideascube
#: irfi/views.py:195
#: irfi/views.py:192
msgid "Title"
msgstr ""
......@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\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"
"Last-Translator: Matthieu Gautier <mgautier@kymeria.fr>, 2018\n"
"Language-Team: French (https://www.transifex.com/ideascube/teams/32243/fr/)\n"
......@@ -44,31 +44,31 @@ msgstr "Numéro de téléphone"
msgid "Text"
msgstr "Texte"
#: irfi/forms.py:55
#: irfi/forms.py:56
msgid "Audio or video file"
msgstr "Fichier audio ou vidéo"
#: irfi/forms.py:56
#: irfi/forms.py:65
msgid "Object"
msgstr "Objet"
#: irfi/forms.py:58
#: irfi/forms.py:67
msgid "I want to publish an ad"
msgstr "Je veux publier une annonce"
#: irfi/forms.py:60
#: irfi/forms.py:69
msgid "I want to leave a message"
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"
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"
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"
msgstr "Seuls les fichiers audios sont autorisés"
......@@ -128,10 +128,6 @@ msgstr "date de diffusion"
msgid "theme"
msgstr "thème"
#: irfi/models.py:28
msgid "duration"
msgstr "durée"
#. Translators: Do not translate this, the translation is in Ideascube
#: irfi/templates/blog/content_detail.html:7
msgid "View all posts"
......@@ -359,11 +355,11 @@ msgstr "Le nom de la radio a été changé avec succès"
msgid "Radio name cannot be empty"
msgstr "Le nom de la radio ne peut pas être vide"
#: irfi/views.py:188
#: irfi/views.py:185
msgid "Date"
msgstr "Date"
#. Translators: Do not translate this, the translation is in Ideascube
#: irfi/views.py:195
#: irfi/views.py:192
msgid "Title"
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):
air_date = models.DateField(verbose_name=_('air date'))
theme = models.CharField(
verbose_name=_('theme'), max_length=255, choices=THEMES)
duration = models.DurationField(
verbose_name=_('duration'), blank=True, null=True)
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