blackboard view fix

This commit is contained in:
root (fetsite21)
2021-01-29 23:41:40 +01:00
parent 23b1f1514f
commit d751bfb146
3 changed files with 13 additions and 2 deletions

View File

@@ -53,7 +53,9 @@ class JobPosting(models.Model):
encoding = locale.getpreferredencoding()
args = [a.encode(encoding) for a in args]
ghostscript.Ghostscript(*args)
#ghostscript.Ghostscript(*args)
with ghostscript.Ghostscript(*args) as g:
ghostscript.cleanup()
def save(self, *args, **kwargs):
super().save(*args, **kwargs)