From 93351735430f50ca89109451c5213667207ab3e1 Mon Sep 17 00:00:00 2001 From: CruiseDevice Date: Tue, 30 Oct 2018 16:22:58 +0530 Subject: remove widget_tweak and login_required from email activation view functions --- sbhs/templates/slot/create_slot.html | 1 - sbhs/views.py | 4 ---- 2 files changed, 5 deletions(-) diff --git a/sbhs/templates/slot/create_slot.html b/sbhs/templates/slot/create_slot.html index dc76382..9d1479c 100644 --- a/sbhs/templates/slot/create_slot.html +++ b/sbhs/templates/slot/create_slot.html @@ -1,7 +1,6 @@ {% extends "account/home.html" %} {% load staticfiles %} {% load custom_filter %} -{% load widget_tweaks %} {% block title %} Book Slot {% endblock %} diff --git a/sbhs/views.py b/sbhs/views.py index 61069f9..4973b0d 100644 --- a/sbhs/views.py +++ b/sbhs/views.py @@ -8,7 +8,6 @@ import inspect import pytz import requests import subprocess, zipfile -# import serial from textwrap import dedent from time import gmtime, strftime import time as tm @@ -20,7 +19,6 @@ from django.db import connection from django.utils import timezone from django.db.models import Count from django.contrib.auth.models import User -# import automatic_slot_booking from django.contrib import messages from django.template.loader import render_to_string from django.views.decorators.csrf import csrf_exempt @@ -185,7 +183,6 @@ def user_register(request): else: return redirect('account_enter') -@login_required def activate_user(request, key): """ Verify user account from the generated activation key user received @@ -247,7 +244,6 @@ def new_activation(request, email=None): context['activation_msg'] = "Your account is already verified" return render(request,'account/activation_status.html',{}) -@login_required def update_email(request): """ Updates user email_id -- cgit