Commits

Matthew Schinckel committed ca73596

Resolves #11: Correct method signature for TimedeltaWidget.render

Thanks to Alexis Petrounias.

Comments (0)

Files changed (1)

timedelta/widgets.py

     def __init__(self, *args, **kwargs):
         return super(TimedeltaWidget, self).__init__(*args, **kwargs)
         
-    def render(self, name, value, attrs):
+    def render(self, name, value, attrs=None):
         if value is None:
             value = ""
         elif isinstance(value, (str, unicode)):