|
|
|
@ -421,6 +421,7 @@ class BaseViews(object): |
|
|
|
imgs = glob.glob(os.path.join(tmp_dir, '*.png')) |
|
|
|
imgs = glob.glob(os.path.join(tmp_dir, '*.png')) |
|
|
|
imgs = [os.path.split(i)[1] for i in imgs] |
|
|
|
imgs = [os.path.split(i)[1] for i in imgs] |
|
|
|
imgs = ['%stmp/%s/%s' % (MEDIA_URL, tmp_dirname, i) for i in imgs] |
|
|
|
imgs = ['%stmp/%s/%s' % (MEDIA_URL, tmp_dirname, i) for i in imgs] |
|
|
|
|
|
|
|
email_form = self.EMAIL_FORM_CLASS() |
|
|
|
|
|
|
|
|
|
|
|
dictionary = { |
|
|
|
dictionary = { |
|
|
|
'obj': obj, |
|
|
|
'obj': obj, |
|
|
|
@ -429,6 +430,8 @@ class BaseViews(object): |
|
|
|
'padeji_mnoj': self.PADEJI_MNOJ, |
|
|
|
'padeji_mnoj': self.PADEJI_MNOJ, |
|
|
|
'url_prefix': self.URL_PREFIX, |
|
|
|
'url_prefix': self.URL_PREFIX, |
|
|
|
'template_create_docs': self.TEMPLATE_CREATE_DOCS, |
|
|
|
'template_create_docs': self.TEMPLATE_CREATE_DOCS, |
|
|
|
|
|
|
|
'email_form': email_form, |
|
|
|
|
|
|
|
'maybe_sign': self.MAYBE_SIGNED, |
|
|
|
} |
|
|
|
} |
|
|
|
return render(self.request, self.TEMPLATE_IMG, dictionary) |
|
|
|
return render(self.request, self.TEMPLATE_IMG, dictionary) |
|
|
|
except: |
|
|
|
except: |
|
|
|
|