[damned-lies] Removed unused imports
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Removed unused imports
- Date: Thu, 21 Jun 2018 09:09:12 +0000 (UTC)
commit 7b5623767b3d17292ce62e3f15ada75472ab8bed
Author: Claude Paroz <claude 2xlibre net>
Date: Wed Jun 20 22:56:32 2018 +0200
Removed unused imports
common/views.py | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/common/views.py b/common/views.py
index 8d917b94..d1fd20b9 100644
--- a/common/views.py
+++ b/common/views.py
@@ -2,7 +2,6 @@ from pathlib import Path
from threading import Thread
from django.conf import settings
-from django.contrib.auth import login
from django.contrib.auth.views import LoginView as AuthLoginView
from django.contrib import messages
from django.core.management import call_command
@@ -10,7 +9,6 @@ from django.http import HttpResponse, HttpResponseForbidden, HttpResponseRedirec
from django.shortcuts import render
from django.template.loader import get_template, TemplateDoesNotExist
from django.urls import reverse
-from django.utils.http import is_safe_url
from django.utils.translation import ugettext as _
from django.views.decorators.csrf import csrf_exempt
@@ -60,7 +58,7 @@ class LoginView(AuthLoginView):
def site_register(request):
if request.method == 'POST':
- form = RegistrationForm(data = request.POST)
+ form = RegistrationForm(data=request.POST)
if form.is_valid():
form.save(request)
return HttpResponseRedirect(reverse('register_success'))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]