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

@@ -14,12 +14,12 @@ from .forms import (
try:
from django.utils import six
string_types = six.string_types
except ImportError:
string_types = str
class JSignatureField(models.Field):
"""
A model field handling a signature captured with jSignature