django-codenerix-email 4.0.5__py2.py3-none-any.whl → 4.0.7__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- __version__ = "4.0.5"
1
+ __version__ = "4.0.7"
2
2
 
3
3
  __authors__ = [
4
4
  "Juan Miguel Taboada Godoy <juanmi@juanmitaboada.com>",
codenerix_email/models.py CHANGED
@@ -96,8 +96,9 @@ class EmailMessage(CodenerixModel, Debugger):
96
96
  return "{} ({})".format(self.eto, self.pk)
97
97
 
98
98
  def set_opened(self):
99
- self.opened = timezone.now()
100
- self.save()
99
+ if not self.opened:
100
+ self.opened = timezone.now()
101
+ self.save()
101
102
 
102
103
  def connect(self, legacy=False):
103
104
  """
@@ -330,6 +331,7 @@ class EmailTemplate(CodenerixModel):
330
331
  lang = settings.LANGUAGES_DATABASES[0].lower()
331
332
 
332
333
  e = EmailMessage()
334
+ context["__emsg__uuid__"] = e.uuid
333
335
  e.subject = Template(getattr(self, lang).subject).render(
334
336
  Context(context)
335
337
  )
codenerix_email/views.py CHANGED
@@ -89,8 +89,6 @@ class EmailFollow(View):
89
89
  email_message = get_object_or_404(EmailMessage, uuid=uid)
90
90
 
91
91
  # Set email message as opened
92
- if not email_message.opened:
93
- email_message.set_opened()
94
92
  email_message.set_opened()
95
93
 
96
94
  # Return an image of 1x1 pixel
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: django-codenerix-email
3
- Version: 4.0.5
3
+ Version: 4.0.7
4
4
  Summary: Codenerix Email is a module that enables CODENERIX to set send emails in a general manner.
5
5
  Home-page: https://github.com/codenerix/django-codenerix-email
6
6
  Author: Juan Miguel Taboada Godoy <juanmi@juanmitaboada.com>, Juan Soler Ruiz <soleronline@gmail.com>
@@ -1,11 +1,11 @@
1
- codenerix_email/__init__.py,sha256=UtLt2hWaJMLkEtHeIj6We0BKBvyW2loO1PRti6LaA7Y,148
1
+ codenerix_email/__init__.py,sha256=1gkaiGSe1wJeUXJ2njbkLDQS7lAqqogUliWJ4E5KtkI,148
2
2
  codenerix_email/admin.py,sha256=o3b-MaD7xsWeta0yfU9YNeKBmHQIcmHqXmP2t-hrrWc,1208
3
3
  codenerix_email/apps.py,sha256=WXqu1XQibDDyCvvQYt2JbTK4GIpW8BNv5DCbRJS2mmk,149
4
4
  codenerix_email/forms.py,sha256=6qEOBoNIVidS5w-CdCKIHLU5kkFerG02BqrkCWRu7Hs,3706
5
- codenerix_email/models.py,sha256=Y8vpuJtC5lypCrjmfS2m010FUyuvCe3O1tGyBzCK7xo,13201
5
+ codenerix_email/models.py,sha256=loTxf5T0bobQkdlEsnTS5DMnyKiA3j5XMcIDBKGotT4,13280
6
6
  codenerix_email/urls.py,sha256=QYrSJdhCp2PLrcfv_Y7X4OzxqQ0Q2-z7ObDPE-_WLdw,2595
7
7
  codenerix_email/urls_frontend.py,sha256=DG5WS_fGQJC9sezNebPwG-E_WtUWy3Kwz4VUxh82xuc,873
8
- codenerix_email/views.py,sha256=T_CHVYQpPO0Fe-QjHfr7PBBd-Fs47ghvrrWb07lHi-U,4820
8
+ codenerix_email/views.py,sha256=B1uN4jTSBWL3XvM9zKjekJCg8UFqiRb1-tXTL73weWw,4736
9
9
  codenerix_email/management/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
10
  codenerix_email/management/__pycache__/__init__.cpython-310.pyc,sha256=7vUcYbg6ZpWdEhb0hq2FSiwMtpBWIjMTv8H8rcgtiOY,179
11
11
  codenerix_email/management/__pycache__/__init__.cpython-311.pyc,sha256=OtPcxwWjtJcDfDWQCWutxYIIwHerLtkPPyMcEFOpdMM,195
@@ -64,8 +64,8 @@ codenerix_email/migrations/__pycache__/__init__.cpython-311.pyc,sha256=RbbUUEhcJ
64
64
  codenerix_email/migrations/__pycache__/__init__.cpython-35.pyc,sha256=2g70xiMW6oJNkIpRM-0Dr5h7AUac-3xyCXPONxp9BBw,147
65
65
  codenerix_email/migrations/__pycache__/__init__.cpython-39.pyc,sha256=qNj2NH0YvoWPnCKxkVZPsEFsbM05y7t1njMskNISdVQ,168
66
66
  codenerix_email/static/codenerix_email/partials/emailmessages_rows.html,sha256=8rNf9kA3x9Nw7Oi5q2fifeNEyJ08EkvuDCKWjiUIfWo,1060
67
- django_codenerix_email-4.0.5.dist-info/LICENSE,sha256=IXMIpi75XsrJt1Sznt4EftT9c_4X0C9eqK4tHhH8H48,11339
68
- django_codenerix_email-4.0.5.dist-info/METADATA,sha256=6D6_ZDfgpiVJcB7bBuOx4ZApqtiIqOVaZXkya304Rz4,2629
69
- django_codenerix_email-4.0.5.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
70
- django_codenerix_email-4.0.5.dist-info/top_level.txt,sha256=lljSA0iKE_UBEM5gIrGQwioC_i8Jjnp-aR1LFElENgw,16
71
- django_codenerix_email-4.0.5.dist-info/RECORD,,
67
+ django_codenerix_email-4.0.7.dist-info/LICENSE,sha256=IXMIpi75XsrJt1Sznt4EftT9c_4X0C9eqK4tHhH8H48,11339
68
+ django_codenerix_email-4.0.7.dist-info/METADATA,sha256=msnHtPjMYRtUPGwvHXw2L1VnmwYWHTmiDphZN46O4lo,2629
69
+ django_codenerix_email-4.0.7.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
70
+ django_codenerix_email-4.0.7.dist-info/top_level.txt,sha256=lljSA0iKE_UBEM5gIrGQwioC_i8Jjnp-aR1LFElENgw,16
71
+ django_codenerix_email-4.0.7.dist-info/RECORD,,