diff gcalendar/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 68c3343f3318
children
line wrap: on
line diff
--- a/gcalendar/models.py	Tue Mar 22 20:06:21 2016 -0500
+++ b/gcalendar/models.py	Wed Mar 30 19:59:11 2016 -0500
@@ -69,7 +69,7 @@
         ordering = ('-date_submitted', )
 
     def save(self, *args, **kwargs):
-        self.html = kwargs.pop('html', None)
+        self.html = kwargs.pop('html', '')
         if not self.html and self.description:
             self.html = site_markup(self.description, relative_urls=False)
         super(Event, self).save(*args, **kwargs)