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):
99
1010class TelFormAttrs (forms .Form ):
1111 tel_number = forms .CharField (widget = IntlTelInputWidget (
12- attrs = {'title' : 'Telephone number' },
12+ attrs = {'title' : 'Telephone number' , 'placeholder' : 'foobar' },
1313 preferred_countries = ['jp' ],
1414 default_code = 'jp'
1515 ))
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ def test_with_attrs(self):
5050 self .assertIn ('data-default-code="jp"' , r .content .decode ('utf-8' ))
5151 self .assertIn ('data-preferred-countries="["jp"]"' ,
5252 r .content .decode ('utf-8' ))
53+ self .assertIn ('placeholder="foobar"' , r .content .decode ('utf-8' ))
5354
5455 def test_with_initial (self ):
5556 r = self .client .get ('/initial-test/' )
You can’t perform that action at this time.
0 commit comments