summaryrefslogtreecommitdiff
path: root/workshop_app/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'workshop_app/views.py')
-rw-r--r--workshop_app/views.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/workshop_app/views.py b/workshop_app/views.py
index a1a6a28..90495a5 100644
--- a/workshop_app/views.py
+++ b/workshop_app/views.py
@@ -151,7 +151,7 @@ def user_register(request):
if request.user.is_authenticated:
return redirect('/view_profile/')
return render(
- request, "workshop_app/registration/register.html",
+ request, "workshop_app/register.html",
{"form": form}
)
else:
@@ -160,7 +160,7 @@ def user_register(request):
elif request.user.is_authenticated:
return render(request, 'workshop_app/activation.html')
form = UserRegistrationForm()
- return render(request, "workshop_app/registration/register.html", {"form": form})
+ return render(request, "workshop_app/register.html", {"form": form})
@login_required
@@ -441,7 +441,6 @@ def workshop_details(request, workshop_id):
form.save()
messages.add_message(request, messages.SUCCESS, "Comment posted")
else:
- print(form.errors)
messages.add_message(request, messages.ERROR, "Error posting comment")
if is_instructor(request.user):
workshop_comments = Comment.objects.filter(workshop=workshop)