Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit 4e5681caf38d984c31224ac73fe25ca7f89d8ac6 1 parent f987575
Gary Wilson Jr. authored May 13, 2008
10  django/contrib/comments/views/comments.py
... ...
@@ -1,3 +1,6 @@
  1
+import base64
  2
+import datetime
  3
+
1 4
 from django.core import validators
2 5
 from django import oldforms
3 6
 from django.core.mail import mail_admins, mail_managers
@@ -8,16 +11,19 @@
8 11
 from django.contrib.comments.models import Comment, FreeComment, RATINGS_REQUIRED, RATINGS_OPTIONAL, IS_PUBLIC
9 12
 from django.contrib.contenttypes.models import ContentType
10 13
 from django.contrib.auth import authenticate
11  
-from django.contrib.auth.forms import AuthenticationForm
12 14
 from django.http import HttpResponseRedirect
13 15
 from django.utils.text import normalize_newlines
14 16
 from django.conf import settings
15 17
 from django.utils.translation import ungettext, ugettext as _
16 18
 from django.utils.encoding import smart_unicode
17  
-import base64, datetime
18 19
 
19 20
 COMMENTS_PER_PAGE = 20
20 21
 
  22
+# TODO: This is a copy of the manipulator-based form that used to live in
  23
+# contrib.auth.forms.  It should be replaced with the newforms version that
  24
+# has now been added to contrib.auth.forms when the comments app gets updated
  25
+# for newforms.
  26
+
21 27
 class AuthenticationForm(oldforms.Manipulator):
22 28
     """
23 29
     Base class for authenticating users. Extend this to get a form that accepts

0 notes on commit 4e5681c

Please sign in to comment.
Something went wrong with that request. Please try again.