Permalink
Browse files

newforms: Changed Form to use auto_id by default

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4192 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
adrianholovaty committed Dec 11, 2006
1 parent 5c8d789 commit 05588b379748888161dbc4486ec076eb3c53b66a
Showing with 93 additions and 93 deletions.
  1. +1 −1 django/newforms/forms.py
  2. +92 −92 tests/regressiontests/forms/tests.py
View
@@ -36,7 +36,7 @@ class Form(StrAndUnicode):
"A collection of Fields, plus their associated data."
__metaclass__ = DeclarativeFieldsMetaclass
- def __init__(self, data=None, auto_id=False): # TODO: prefix stuff
+ def __init__(self, data=None, auto_id='id_%s'): # TODO: prefix stuff
self.ignore_errors = data is None
self.data = data or {}
self.auto_id = auto_id
Oops, something went wrong.

0 comments on commit 05588b3

Please sign in to comment.