summaryrefslogtreecommitdiff
path: root/ishtar_common/widgets.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/widgets.py')
-rw-r--r--ishtar_common/widgets.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/ishtar_common/widgets.py b/ishtar_common/widgets.py
index aee4eb95d..cb9250b9c 100644
--- a/ishtar_common/widgets.py
+++ b/ishtar_common/widgets.py
@@ -30,7 +30,7 @@ from django.db.models import fields
from django.forms import ClearableFileInput
from django.forms.utils import flatatt
from django.forms.widgets import CheckboxSelectMultiple as \
- CheckboxSelectMultipleBase
+ CheckboxSelectMultipleBase, NumberInput
from django.template import loader
from django.template.defaultfilters import slugify
from django.utils.encoding import smart_unicode
@@ -1115,3 +1115,7 @@ class DataTable(Select2Media, forms.RadioSelect):
t = loader.get_template('blocks/DataTables.html')
rendered += t.render(dct)
return mark_safe(rendered)
+
+
+class RangeInput(NumberInput):
+ input_type = 'range'