summaryrefslogtreecommitdiff
path: root/fossee_manim/views.py
diff options
context:
space:
mode:
authorAkshen2019-05-14 11:52:21 +0530
committerAkshen2019-05-14 11:52:21 +0530
commitdf1bca4647a456291851c596c39dc96a438913de (patch)
treefd8fe45f02917aeeb6331bfeb8e1fce7b50721a7 /fossee_manim/views.py
parent8543fed00c912877375b0835b63c765baed654e2 (diff)
downloadFOSSEE_animations-df1bca4647a456291851c596c39dc96a438913de.tar.gz
FOSSEE_animations-df1bca4647a456291851c596c39dc96a438913de.tar.bz2
FOSSEE_animations-df1bca4647a456291851c596c39dc96a438913de.zip
Proposal Updates
- Testcases changed - send_proposal function changed - models changed
Diffstat (limited to 'fossee_manim/views.py')
-rw-r--r--fossee_manim/views.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/fossee_manim/views.py b/fossee_manim/views.py
index feaad67..feb23de 100644
--- a/fossee_manim/views.py
+++ b/fossee_manim/views.py
@@ -282,13 +282,9 @@ def send_proposal(request):
form_data = form.save(commit=False)
form_data.contributor = user
form_data.status = "pending"
- if check_repo(form_data.github):
- form_data.save()
- form.save_m2m()
- # makepath(form_data)
- else:
- messages.warning(request, 'Please enter valid github details')
- return render(request, 'fossee_manim/send_proposal.html',
+ form.save()
+ else:
+ return render(request, 'fossee_manim/send_proposal.html',
{'form': form, 'categories': categories})
return redirect('/proposal_status/')
else: