Browse Source

Use bootstrap input styles to shrink quantity field width

master
David Winterbottom 12 years ago
parent
commit
fcddaececf
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      oscar/apps/wishlists/forms.py

+ 1
- 1
oscar/apps/wishlists/forms.py View File

@@ -22,7 +22,7 @@ class WishListLineForm(forms.ModelForm):
22 22
 
23 23
     def __init__(self, *args, **kwargs):
24 24
         super(WishListLineForm, self).__init__(*args, **kwargs)
25
-        self.fields['quantity'].widget.attrs['size'] = 2
25
+        self.fields['quantity'].widget.attrs['class'] = 'input-mini'
26 26
 
27 27
 
28 28
 LineFormset = inlineformset_factory(

Loading…
Cancel
Save