web/views/forms.py
changeset 9717 a6834e2dcc1b
parent 8900 010a59e12d89
child 9770 112c884b2d8d
--- a/web/views/forms.py	Fri Apr 11 17:43:26 2014 +0200
+++ b/web/views/forms.py	Mon Apr 14 23:00:19 2014 +0200
@@ -111,6 +111,9 @@
     :attr:`fieldsets_in_order`
       sequence of fieldset names , to control order
 
+    :attr:`autocomplete`
+      set to False to add 'autocomplete=off' in the form open tag
+
     **Generic methods**
 
     .. automethod:: cubicweb.web.form.Form.field_by_name(name, role=None)
@@ -160,6 +163,7 @@
     form_buttons = None
     form_renderer_id = 'default'
     fieldsets_in_order = None
+    autocomplete = True
 
     @property
     def needs_multipart(self):