Widget should not behave as a hidden field

This commit is contained in:
Florent Lebreton
2013-11-20 15:46:40 +01:00
parent 27eeca4f8f
commit 7666e781e5

View File

@@ -17,6 +17,10 @@ class JSignatureWidget(HiddenInput):
A widget handling a signature capture field with with jSignature A widget handling a signature capture field with with jSignature
""" """
# Actually, this widget has a display so we want it to behave like a
# normal field, not a hidden one
is_hidden = False
class Media: class Media:
js = ('js/jSignature.min.js', js = ('js/jSignature.min.js',
'js/django_jsignature.js') 'js/django_jsignature.js')