django-codenerix-email 4.0.6__py2.py3-none-any.whl → 4.0.8__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.6"
1
+ __version__ = "4.0.8"
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
  """
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
@@ -112,8 +110,8 @@ class EmailFollow(View):
112
110
  class EmailTemplateList(GenList):
113
111
  model = EmailTemplate
114
112
  extra_context = {
115
- "menu": ["EmailTemplate", "people"],
116
- "bread": [_("EmailTemplate"), _("People")],
113
+ "menu": ["codenerix_email", "emailtemplate"],
114
+ "bread": [_("Emails"), _("Email Template")],
117
115
  }
118
116
 
119
117
 
@@ -155,8 +153,8 @@ class EmailMessageList(GenList):
155
153
  "waiting": _("Waiting"),
156
154
  }
157
155
  extra_context = {
158
- "menu": ["EmailMessage", "people"],
159
- "bread": [_("EmailMessage"), _("People")],
156
+ "menu": ["codenerix_email", "emailmessages"],
157
+ "bread": [_("Emails"), _("Email Messages")],
160
158
  }
161
159
 
162
160
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: django-codenerix-email
3
- Version: 4.0.6
3
+ Version: 4.0.8
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=sePn8_YekdiNYU9AfaRi4sIV97lsSoxlIhQA_4GqrDI,148
1
+ codenerix_email/__init__.py,sha256=WMVPTald058LMZiajln1x_2ATBN5fNLa-bKRjOlMMYk,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=NSkf-Sah81bhMdqVtddP6UcyUO-TiosaM4I6fFPym-g,13244
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=T6qAFeD_PTlX-6eZuSFP68s80vrFne0ZkZjTbHhbyV8,4758
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.6.dist-info/LICENSE,sha256=IXMIpi75XsrJt1Sznt4EftT9c_4X0C9eqK4tHhH8H48,11339
68
- django_codenerix_email-4.0.6.dist-info/METADATA,sha256=edp4ejH6ulCWHsX5Rt7aQ5fNskS4Cioe_nO_jLN_6tw,2629
69
- django_codenerix_email-4.0.6.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
70
- django_codenerix_email-4.0.6.dist-info/top_level.txt,sha256=lljSA0iKE_UBEM5gIrGQwioC_i8Jjnp-aR1LFElENgw,16
71
- django_codenerix_email-4.0.6.dist-info/RECORD,,
67
+ django_codenerix_email-4.0.8.dist-info/LICENSE,sha256=IXMIpi75XsrJt1Sznt4EftT9c_4X0C9eqK4tHhH8H48,11339
68
+ django_codenerix_email-4.0.8.dist-info/METADATA,sha256=_HB1L07cz7ZLVItj9faF3E-X3RnnHeeMMvGHifPz-Pc,2629
69
+ django_codenerix_email-4.0.8.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
70
+ django_codenerix_email-4.0.8.dist-info/top_level.txt,sha256=lljSA0iKE_UBEM5gIrGQwioC_i8Jjnp-aR1LFElENgw,16
71
+ django_codenerix_email-4.0.8.dist-info/RECORD,,