diff options
author | Magnus Hagander | 2023-07-12 10:40:35 +0000 |
---|---|---|
committer | Magnus Hagander | 2023-07-12 10:40:35 +0000 |
commit | be8ad0fab6c3ced4c32845126f973048b33e37d1 (patch) | |
tree | df894b51fffe6051a7c9f70dd9853101d2694cf5 /postgresqleu/digisign/models.py | |
parent | 57dc3c9a081b5e99b4f984f4e81aec655594ce27 (diff) |
Implement re-sending of sponsorship contracts
For e-mail based contracts, this just re-generates the PDF and sends it.
For digital contracts (only available if supported by the provider), it
will both cancel the old contract and create/send a new one.
Diffstat (limited to 'postgresqleu/digisign/models.py')
-rw-r--r-- | postgresqleu/digisign/models.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/postgresqleu/digisign/models.py b/postgresqleu/digisign/models.py index 674e71ab..c8c81974 100644 --- a/postgresqleu/digisign/models.py +++ b/postgresqleu/digisign/models.py @@ -23,6 +23,10 @@ class DigisignProvider(models.Model): mod = __import__(modname, fromlist=[classname, ]) return getattr(mod, classname)(self.id, self) + @property + def implementation(self): + return self.get_implementation() + class DigisignDocument(models.Model): provider = models.ForeignKey(DigisignProvider, null=False, blank=False, on_delete=models.CASCADE) |