Skip to content

Commit

Permalink
Smriti Launch 2k17
Browse files Browse the repository at this point in the history
  • Loading branch information
abhijithanilkumar committed Apr 19, 2017
1 parent 77102e9 commit 1700773
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/smriti/templates/smriti/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0"/>
<title>Smriti 2016</title>
<title>Smriti 2017</title>

<!-- Load Core Materialize CSS -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
Expand All @@ -28,7 +28,7 @@
<div class="nav-wrapper container">
<a href="/smriti" class="brand-logo">
<span class="pad smriti">
Smriti 2016
Smriti 2017
</span>
</a>
<ul class="right hide-on-med-and-down">
Expand Down
6 changes: 4 additions & 2 deletions src/smriti/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,10 @@ def writeTestimonial(request, rollno):
test.description = content.strip()
test.save()
if created:
django_rq.enqueue(send_new_testimonial_mail, testimonial_to.user, request.user, test.id)
return redirect("/smriti/profiles/"+testimonial_to.rollno)
#django_rq.enqueue(send_new_testimonial_mail, testimonial_to.user, request.user, test.id)
return redirect("/smriti/profiles/"+testimonial_to.rollno)
else:
return render(request, "smriti/generic.html", {"content":"Oops! Something went wrong. Please try again!"})

class EditProfile(LoginRequiredMixin, generic.TemplateView):
template_name = "smriti/edit_profile.html"
Expand Down

0 comments on commit 1700773

Please sign in to comment.