File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ class TelForm(forms.Form):
9
9
10
10
class TelFormAttrs (forms .Form ):
11
11
tel_number = forms .CharField (widget = IntlTelInputWidget (
12
- attrs = {'title' : 'Telephone number' },
12
+ attrs = {'title' : 'Telephone number' , 'placeholder' : 'foobar' },
13
13
preferred_countries = ['jp' ],
14
14
default_code = 'jp'
15
15
))
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ def test_with_attrs(self):
50
50
self .assertIn ('data-default-code="jp"' , r .content .decode ('utf-8' ))
51
51
self .assertIn ('data-preferred-countries="["jp"]"' ,
52
52
r .content .decode ('utf-8' ))
53
+ self .assertIn ('placeholder="foobar"' , r .content .decode ('utf-8' ))
53
54
54
55
def test_with_initial (self ):
55
56
r = self .client .get ('/initial-test/' )
You can’t perform that action at this time.
0 commit comments