Mercurial > public > sg101
diff custom_search/forms.py @ 729:99d7bf8cd712
Changed the search input type to search for HTML5.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 06 Oct 2013 14:48:42 -0500 |
parents | ee87ea74d46b |
children | ad53d929281a |
line wrap: on
line diff
--- a/custom_search/forms.py Sun Oct 06 14:14:58 2013 -0500 +++ b/custom_search/forms.py Sun Oct 06 14:48:42 2013 -0500 @@ -26,7 +26,10 @@ """ q = forms.CharField(required=False, label='', - widget=forms.TextInput(attrs={'class': 'text', 'size': 48})) + widget=forms.TextInput(attrs={'type': 'search', + 'class': 'search', + 'size': 48, + })) def __init__(self, *args, **kwargs): super(CustomModelSearchForm, self).__init__(*args, **kwargs)