diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-07-20 21:20:42 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-07-22 09:29:52 +0200 |
| commit | d11d45aad969be313b9e046d0d42b179a3fb6906 (patch) | |
| tree | e17efbf7bda99b68b575e1b6669047bd1e36de8b /django/forms/widgets.py | |
| parent | 7fa51a24a8ca47f41f5d711e81b8a71b08542a36 (diff) | |
[py3] Used six.with_metaclass wherever necessary.
Diffstat (limited to 'django/forms/widgets.py')
| -rw-r--r-- | django/forms/widgets.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/forms/widgets.py b/django/forms/widgets.py index 04a838093c..20fa9e973a 100644 --- a/django/forms/widgets.py +++ b/django/forms/widgets.py @@ -17,6 +17,7 @@ from django.utils.translation import ugettext, ugettext_lazy from django.utils.encoding import StrAndUnicode, force_unicode from django.utils.safestring import mark_safe from django.utils import datetime_safe, formats +from django.utils import six __all__ = ( 'Media', 'MediaDefiningClass', 'Widget', 'TextInput', 'PasswordInput', @@ -153,8 +154,7 @@ class SubWidget(StrAndUnicode): args.append(self.choices) return self.parent_widget.render(*args) -class Widget(object): - __metaclass__ = MediaDefiningClass +class Widget(six.with_metaclass(MediaDefiningClass)): is_hidden = False # Determines whether this corresponds to an <input type="hidden">. needs_multipart_form = False # Determines does this widget need multipart form is_localized = False |
