Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit e6babbfe5f35dd972c185ff194c285df9e2e4a06 1 parent 4db61fb
@adrianholovaty adrianholovaty authored
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)
Please sign in to comment.
Something went wrong with that request. Please try again.