Mercurial > public > sg101
comparison 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 |
comparison
equal
deleted
inserted
replaced
1023:a5ebc74dc3f3 | 1024:6164cc091649 |
---|---|
24 class Meta: | 24 class Meta: |
25 ordering = ('-date_updated', ) | 25 ordering = ('-date_updated', ) |
26 verbose_name_plural = 'map entries' | 26 verbose_name_plural = 'map entries' |
27 | 27 |
28 def save(self, *args, **kwargs): | 28 def save(self, *args, **kwargs): |
29 self.html = site_markup(self.message) | 29 self.html = kwargs.pop('html', None) |
30 if not self.html and self.message: | |
31 self.html = site_markup(self.message) | |
30 self.date_updated = datetime.datetime.now() | 32 self.date_updated = datetime.datetime.now() |
31 super(MapEntry, self).save(*args, **kwargs) | 33 super(MapEntry, self).save(*args, **kwargs) |
32 | 34 |