[extensions-web] Be more explicit with imports
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] Be more explicit with imports
- Date: Wed, 26 Oct 2011 21:59:42 +0000 (UTC)
commit 11f82c79b6454fac4acba041d444c665d6f778c4
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed Oct 26 17:59:13 2011 -0400
Be more explicit with imports
sweettooth/auth/urls.py | 5 +++--
sweettooth/auth/views.py | 1 -
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/sweettooth/auth/urls.py b/sweettooth/auth/urls.py
index d35d73d..7e08523 100644
--- a/sweettooth/auth/urls.py
+++ b/sweettooth/auth/urls.py
@@ -1,15 +1,16 @@
from django.views.generic.simple import direct_to_template
from django.conf.urls.defaults import patterns, url, include
+from django.contrib.auth.views import login, logout
from auth import views, forms
from registration.views import register
urlpatterns = patterns('',
- url(r'^login/', views.login,
+ url(r'^login/', login,
dict(template_name='registration/login.html',
authentication_form=forms.AuthenticationForm), name='auth-login'),
- url(r'^logout/', views.logout,
+ url(r'^logout/', logout,
dict(next_page='/'), name='auth-logout'),
url(r'^register/$', register,
diff --git a/sweettooth/auth/views.py b/sweettooth/auth/views.py
index 5ed0193..2d03c33 100644
--- a/sweettooth/auth/views.py
+++ b/sweettooth/auth/views.py
@@ -1,7 +1,6 @@
from django.contrib.auth import models
from django.contrib.auth.decorators import login_required
-from django.contrib.auth.views import login, logout
from django.shortcuts import get_object_or_404, redirect
from review.models import CodeReview
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]