Models¶
django-anysign presumes digital signature involves models in the Django project: one to store the signatures, another to store signers, and one to store backend specific options.
That said, django-anysign does not embeds concrete models: it provides base models you have to extend in your applications. This design allows you to customize models the way you like, i.e. depending on your use case.
Minimal integration¶
Here is the minimal integration you need in some models.py:
import django_anysign
class SignatureType(django_anysign.SignatureType):
pass
class Signature(django_anysign.SignatureFactory(SignatureType)):
pass
class Signer(django_anysign.SignerFactory(Signature)):
pass
The example above is taken from django-anysign‘s Demo project.
SignatureType¶
Signature¶
Here is what you get in the Demo project:
Signer¶
Here is what you get in the Demo project: