diff options
author | adityacp | 2018-07-10 15:47:46 +0530 |
---|---|---|
committer | adityacp | 2018-07-10 15:47:46 +0530 |
commit | c075bc00bc57507f2af4d47f7f2e5e063df6921a (patch) | |
tree | 79cbae95ddcaa6bbfa7cd47944e249f9b242464d /yaksh/forms.py | |
parent | 5bd270e21bfdf08bd73940bf471ebcf566fb9de6 (diff) | |
download | online_test-c075bc00bc57507f2af4d47f7f2e5e063df6921a.tar.gz online_test-c075bc00bc57507f2af4d47f7f2e5e063df6921a.tar.bz2 online_test-c075bc00bc57507f2af4d47f7f2e5e063df6921a.zip |
Change in file_utils, forms, models, lesson.css, add_lesson.html, views
- Add new function in the file_utils to render template
- Add webm as supported video format in forms
- Add help text in video_file field
- Add lesson.css file for adding custom styling for lessons
- Add static_files dict in download_course views function
Diffstat (limited to 'yaksh/forms.py')
-rw-r--r-- | yaksh/forms.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/forms.py b/yaksh/forms.py index 66076b1..bfa5566 100644 --- a/yaksh/forms.py +++ b/yaksh/forms.py @@ -330,7 +330,7 @@ class LessonForm(forms.ModelForm): file = self.cleaned_data.get("video_file") if file: extension = file.name.split(".")[-1] - actual_extension = ["mp4", "ogv"] + actual_extension = ["mp4", "ogv", "webm"] if extension not in actual_extension: raise forms.ValidationError( "Please upload video files in {0} format".format( |