Commit 6fd483ed authored by Mathieu Bridon's avatar Mathieu Bridon

participate: Ask the browser to filter allowed formats

This is not as nice as accepting all formats and transcoding them, but
it's the best we can do quickly.

Fixes #11
parent ff12841f
......@@ -52,7 +52,16 @@ class MessageForm(forms.Form):
phone = forms.CharField(label=_("Phone number"), required=False)
text = forms.CharField(label=_("Text"), widget=RichTextEntry,
media = forms.FileField(label=_("Audio or video file"), required=False)
media = forms.FileField(
label=_("Audio or video file"), required=False,
'accept': (
'.mp3,.mp4,.wav, '
kind = forms.ChoiceField(label=_("Object"),
_('I want to publish an ad')),
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