summaryrefslogtreecommitdiff
path: root/django/forms/widgets.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/forms/widgets.py')
-rw-r--r--django/forms/widgets.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/django/forms/widgets.py b/django/forms/widgets.py
index e7717c2ff6..f1e233865c 100644
--- a/django/forms/widgets.py
+++ b/django/forms/widgets.py
@@ -30,6 +30,7 @@ __all__ = (
"NumberInput",
"EmailInput",
"URLInput",
+ "ColorInput",
"SearchInput",
"PasswordInput",
"HiddenInput",
@@ -354,6 +355,11 @@ class URLInput(Input):
template_name = "django/forms/widgets/url.html"
+class ColorInput(Input):
+ input_type = "color"
+ template_name = "django/forms/widgets/color.html"
+
+
class SearchInput(Input):
input_type = "search"
template_name = "django/forms/widgets/search.html"