diff options
author | Akshen | 2019-05-20 16:49:17 +0530 |
---|---|---|
committer | GitHub | 2019-05-20 16:49:17 +0530 |
commit | 3ab53d50afb3255bb35226c012045a5aefd994b5 (patch) | |
tree | 142fd54e420e29dfd2714340430a968c6e32d625 /fossee_manim/views.py | |
parent | b98a2a980d89ebe720190b48beaa53a4d2a2ee2e (diff) | |
parent | 9cf34c6c91b1a8cab0738d58a369cfe74070878c (diff) | |
download | FOSSEE_animations-3ab53d50afb3255bb35226c012045a5aefd994b5.tar.gz FOSSEE_animations-3ab53d50afb3255bb35226c012045a5aefd994b5.tar.bz2 FOSSEE_animations-3ab53d50afb3255bb35226c012045a5aefd994b5.zip |
Merge pull request #19 from Akshen/develop
Video upload status
Diffstat (limited to 'fossee_manim/views.py')
-rw-r--r-- | fossee_manim/views.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fossee_manim/views.py b/fossee_manim/views.py index 60d2f1e..265e8ee 100644 --- a/fossee_manim/views.py +++ b/fossee_manim/views.py @@ -345,6 +345,10 @@ def edit_proposal(request, proposal_id=None): upload_form = UploadAnimationForm() categories = Category.objects.all() video = AnimationStats.objects.filter(animation=proposal_id) + if len(video)>0: + msg = ('Previously a video was uploaded for '+ video[0].animation.title) + else: + msg = ('No video uploaded') try: comments = Comment.objects.filter(animation_id=proposal_id).order_by( '-created_date' @@ -420,7 +424,8 @@ def edit_proposal(request, proposal_id=None): "comment_form": comment_form, "upload_form": upload_form, 'video': video, - 'categories': categories}) + 'categories': categories, + 'msg': msg}) def search(request): |