- Timestamp:
- 05/13/08 09:50:44 (8 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/newforms-admin/django/contrib/comments/views/comments.py
r7524 r7525 1 import base64 2 import datetime 3 1 4 from django.core import validators 2 5 from django import oldforms … … 9 12 from django.contrib.contenttypes.models import ContentType 10 13 from django.contrib.auth import authenticate 11 from django.contrib.auth.forms import AuthenticationForm12 14 from django.http import HttpResponseRedirect 13 15 from django.utils.text import normalize_newlines … … 15 17 from django.utils.translation import ungettext, ugettext as _ 16 18 from django.utils.encoding import smart_unicode 17 import base64, datetime18 19 19 20 COMMENTS_PER_PAGE = 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. 20 26 21 27 class AuthenticationForm(oldforms.Manipulator):
