diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-11-29 03:18:56 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-11-29 03:18:56 +0000 |
| commit | e6babbfe5f35dd972c185ff194c285df9e2e4a06 (patch) | |
| tree | ee61d57c8089e62b7ebb5d94aed9e43d3a371071 /django/newforms | |
| parent | 4db61fb406afb8447fb8dfe4808ccb426b824064 (diff) | |
newforms: Added docstring to Widget.build_attrs()
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4134 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/newforms')
| -rw-r--r-- | django/newforms/widgets.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/django/newforms/widgets.py b/django/newforms/widgets.py index d0ea678df5..1e7c839969 100644 --- a/django/newforms/widgets.py +++ b/django/newforms/widgets.py @@ -30,6 +30,7 @@ class Widget(object): 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) |
