diff options
author | adityacp | 2020-09-25 10:33:47 +0530 |
---|---|---|
committer | adityacp | 2020-09-25 10:33:47 +0530 |
commit | 0c5f2afb084c0a4efd1715d53909ce2bb07b5883 (patch) | |
tree | f92603125924b8f9621b7e8ee6baf02d3f5b21b7 /yaksh/models.py | |
parent | 8444e93ac160f64d03525940f738ff5aa52cd20a (diff) | |
download | online_test-0c5f2afb084c0a4efd1715d53909ce2bb07b5883.tar.gz online_test-0c5f2afb084c0a4efd1715d53909ce2bb07b5883.tar.bz2 online_test-0c5f2afb084c0a4efd1715d53909ce2bb07b5883.zip |
Change forms, models, settings and template
- Add max_upload_size in settings for video file
- Change error messages in forms
- Set the video_file field max_length
- Fix add_lesson template for uploading video file
Diffstat (limited to 'yaksh/models.py')
-rw-r--r-- | yaksh/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/models.py b/yaksh/models.py index 6a6fe12..7757951 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -289,7 +289,7 @@ class Lesson(models.Model): # A video file video_file = models.FileField( - upload_to=get_file_dir, default=None, + upload_to=get_file_dir, max_length=255, default=None, null=True, blank=True, help_text="Please upload video files in mp4, ogv, webm format" ) |