Commits

Mike Orr committed c901b96

Make submit()'s ``value`` arg required.

  • Participants
  • Parent commits c6b3204

Comments (0)

Files changed (2)

tests/test_tags.py

     def test_submit(self):
         self.assertEqual(
             u'<input name="commit" type="submit" value="Save changes" />',
-            submit("commit")
+            submit("commit", "Save changes")
         )
 
     def test_text_area(self):

webhelpers/html/tags.py

     return HTML.input(**attrs)
 
 
-def submit(name, value="Save changes", **attrs):
+def submit(name, value, **attrs):
     """Create a submit button with the text ``value`` as the caption."""
     set_input_attrs(attrs, "submit", name, value)
     return HTML.input(**attrs)