Fix set_cursor for last widget

This commit is contained in:
Cédric Krier committed 2008-09-30 16:30:18 +02:00
1 parent 280f93eaaa
commit f100fda9a1
1 file changed
+1 -1
+1 -1
View File
@@ -219,7 +219,7 @@ class ViewForm(ParserView):
if not modelfield:
continue
if not modelfield.get_state_attrs(model).get('valid', True):
if widget.widget.position >= position:
if widget.widget.position > position:
continue
position = widget.widget.position
focus_widget = widget