Handle both admin and not admin usages

This commit is contained in:
Sebastien Corbin
2020-04-18 20:22:04 +02:00
parent a6946d160d
commit d08e0ba276
6 changed files with 52 additions and 26 deletions

View File

@@ -17,6 +17,9 @@ JSIGNATURE_UNDO_BUTTON = getattr(
JSIGNATURE_RESET_BUTTON = getattr(
settings, 'JSIGNATURE_RESET_BUTTON', True)
JSIGNATURE_JQUERY = getattr(
settings, 'JSIGNATURE_JQUERY', 'custom')
JSIGNATURE_DEFAULT_CONFIG = {
'width': JSIGNATURE_WIDTH,
'height': JSIGNATURE_HEIGHT,