Commits

Luke Plant committed 1194552

Fixed double 'id' attribute

Comments (0)

Files changed (1)

autocomplete/widgets.py

 AC_TEMPLATE = u'''
 <div>
   <input type="hidden" name="%(name)s" id="id_hidden_%(name)s" value="%(hidden_value)s" />
-  <input type="text" id="id_%(name)s" value="%(value)s" %(attrs)s />
+  <input type="text" value="%(value)s" %(attrs)s />
   <script type="text/javascript">var %(var_name)s = new autocomplete("%(name)s", "%(url)s", %(force_selection)s);</script>
 </div>
 '''