Mercurial > public > sg101
diff membermap/models.py @ 1064:f0ac48aa8c64
Fix bug where None could be saved as html field.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 30 Mar 2016 19:59:11 -0500 |
parents | 6164cc091649 |
children |
line wrap: on
line diff
--- a/membermap/models.py Tue Mar 22 20:06:21 2016 -0500 +++ b/membermap/models.py Wed Mar 30 19:59:11 2016 -0500 @@ -26,7 +26,7 @@ verbose_name_plural = 'map entries' def save(self, *args, **kwargs): - self.html = kwargs.pop('html', None) + self.html = kwargs.pop('html', '') if not self.html and self.message: self.html = site_markup(self.message) self.date_updated = datetime.datetime.now()