Add back in parsing the content override into html

This commit is contained in:
Patrick Altman 2016-02-20 17:06:09 -06:00
parent 6e83588f31
commit a1cbcdddd5

View file

@ -149,6 +149,7 @@ class Slot(models.Model):
def save(self, *args, **kwargs): def save(self, *args, **kwargs):
roomlist = ' '.join(map(lambda r: r.__unicode__(), self.rooms)) roomlist = ' '.join(map(lambda r: r.__unicode__(), self.rooms))
self.name = "%s %s (%s - %s) %s" % (self.day, self.kind, self.start, self.end, roomlist) self.name = "%s %s (%s - %s) %s" % (self.day, self.kind, self.start, self.end, roomlist)
self.content_override_html = parse(self.content_override)
super(Slot, self).save(*args, **kwargs) super(Slot, self).save(*args, **kwargs)
def __str__(self): def __str__(self):