summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Wilson Jr <gary.wilson@gmail.com>2008-05-13 14:50:44 +0000
committerGary Wilson Jr <gary.wilson@gmail.com>2008-05-13 14:50:44 +0000
commit4e5681caf38d984c31224ac73fe25ca7f89d8ac6 (patch)
tree78cd6cfd291d763d4776e5bef7823372746c485c
parentf98757509eafe72bc5508f3a56a8b5ba60f39f86 (diff)
newforms-admin: Cleaned up imports, refs #6083.
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@7525 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/contrib/comments/views/comments.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/django/contrib/comments/views/comments.py b/django/contrib/comments/views/comments.py
index 683f73987a..ba59cbafc9 100644
--- a/django/contrib/comments/views/comments.py
+++ b/django/contrib/comments/views/comments.py
@@ -1,3 +1,6 @@
+import base64
+import datetime
+
from django.core import validators
from django import oldforms
from django.core.mail import mail_admins, mail_managers
@@ -8,16 +11,19 @@ from django.template import RequestContext
from django.contrib.comments.models import Comment, FreeComment, RATINGS_REQUIRED, RATINGS_OPTIONAL, IS_PUBLIC
from django.contrib.contenttypes.models import ContentType
from django.contrib.auth import authenticate
-from django.contrib.auth.forms import AuthenticationForm
from django.http import HttpResponseRedirect
from django.utils.text import normalize_newlines
from django.conf import settings
from django.utils.translation import ungettext, ugettext as _
from django.utils.encoding import smart_unicode
-import base64, datetime
COMMENTS_PER_PAGE = 20
+# TODO: This is a copy of the manipulator-based form that used to live in
+# contrib.auth.forms. It should be replaced with the newforms version that
+# has now been added to contrib.auth.forms when the comments app gets updated
+# for newforms.
+
class AuthenticationForm(oldforms.Manipulator):
"""
Base class for authenticating users. Extend this to get a form that accepts