Browse files

newforms: Added docstring to Widget.build_attrs()

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4134 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 4db61fb commit e6babbfe5f35dd972c185ff194c285df9e2e4a06 @adrianholovaty adrianholovaty committed Nov 29, 2006
Showing with 1 addition and 0 deletions.
  1. +1 −0 django/newforms/widgets.py
View
1 django/newforms/widgets.py
@@ -30,6 +30,7 @@ def render(self, name, value):
raise NotImplementedError
def build_attrs(self, extra_attrs=None, **kwargs):
+ "Helper function for building an attribute dictionary."
attrs = dict(self.attrs, **kwargs)
if extra_attrs:
attrs.update(extra_attrs)

0 comments on commit e6babbf

Please sign in to comment.