Mercurial > public > sg101
diff gcalendar/forms.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 | 68c3343f3318 |
children | 110bbc78a482 |
line wrap: on
line diff
--- a/gcalendar/forms.py Tue Mar 22 20:06:21 2016 -0500 +++ b/gcalendar/forms.py Wed Mar 30 19:59:11 2016 -0500 @@ -125,7 +125,7 @@ def clean_description(self): description = self.cleaned_data['description'] - self.html = None + self.html = '' if description: self.html = site_markup(description, relative_urls=False) try: