Commit f80bb4a2f02f62fda7e15f0189ea64cd5db5084b

Authored by Gust
Committed by Sergio Oliveira
1 parent 06ba4bfa

Fix type error in get_received_datetime

- Only when parsing new emails/mailinglists

Signed-off-by: Gustavo Jaruga <darksshades@gmail.com>
Signed-off-by: Alexandre Barbosa <alexandreab@live.com>
Showing 1 changed file with 5 additions and 0 deletions   Show diff stats
colab/super_archives/models.py
... ... @@ -19,6 +19,7 @@ from hitcounter.models import HitCounterModelMixin
19 19 from .managers import NotSpamManager, MostVotedManager, HighestScore
20 20 from .utils import blocks, email
21 21 from .utils.etiquetador import etiquetador
  22 +from colab.accounts.utils import mailman
22 23  
23 24  
24 25 def get_validation_key():
... ... @@ -79,6 +80,10 @@ class MailingList(models.Model):
79 80 description = models.TextField()
80 81 logo = models.FileField(upload_to='list_logo') # TODO
81 82 last_imported_index = models.IntegerField(default=0)
  83 + is_private = models.BooleanField(default=False)
  84 +
  85 + def update_privacy(self):
  86 + self.is_private = mailman.is_private_list(self.name)
82 87  
83 88 def get_absolute_url(self):
84 89 params = {
... ...