|
@@ -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"
|