newforms: Added docstring to Widget.build_attrs()

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4134 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2006-11-29 03:18:56 +00:00
parent 4db61fb406
commit e6babbfe5f
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@ class Widget(object):
raise NotImplementedError raise NotImplementedError
def build_attrs(self, extra_attrs=None, **kwargs): def build_attrs(self, extra_attrs=None, **kwargs):
"Helper function for building an attribute dictionary."
attrs = dict(self.attrs, **kwargs) attrs = dict(self.attrs, **kwargs)
if extra_attrs: if extra_attrs:
attrs.update(extra_attrs) attrs.update(extra_attrs)