Mercurial > public > sg101
diff membermap/models.py @ 1024:6164cc091649
Perform image_check on membermap messages.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 10 Dec 2015 21:11:10 -0600 |
parents | ee87ea74d46b |
children | f0ac48aa8c64 |
line wrap: on
line diff
--- a/membermap/models.py Thu Dec 10 20:57:50 2015 -0600 +++ b/membermap/models.py Thu Dec 10 21:11:10 2015 -0600 @@ -26,7 +26,9 @@ verbose_name_plural = 'map entries' def save(self, *args, **kwargs): - self.html = site_markup(self.message) + self.html = kwargs.pop('html', None) + if not self.html and self.message: + self.html = site_markup(self.message) self.date_updated = datetime.datetime.now() super(MapEntry, self).save(*args, **kwargs)