Another Commit

This commit is contained in:
Praneeth Bhandaru 2020-12-13 14:52:38 -05:00
parent 11474ecb96
commit 891bb6226d

View File

@ -9,7 +9,7 @@ from .forms import *
# Create your views here. # Create your views here.
def register_view(request): def register_view(request):
if request.user or request.user.is_authenticated: if request.user.is_authenticated:
return redirect('home') return redirect('home')
if request.method == "POST": if request.method == "POST":
form = UserRegisterForm(request.POST) form = UserRegisterForm(request.POST)