Changeset - 494b8ffb1779
[Not reviewed]
0 1 0
Tobias - 5 years ago 2019-01-03 23:45:51
tobias@localhost.localdomain
Fix slot naming if re-using talk types
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
vendor/symposion/schedule/models.py
Show inline comments
...
 
@@ -175,13 +175,13 @@ class Slot(models.Model):
 
        roomlist = ' '.join(map(str, self.rooms))
 
        self.name = "%s %s (%s - %s) %s" % (self.day.date, self.kind.label, self.start, self.end, roomlist)
 
        self.content_override_html = parse(self.content_override)
 
        super(Slot, self).save(*args, **kwargs)
 

	
 
    def __str__(self):
 
        return "%s: %s" % (self.kind.schedule.section.name, self.name)
 
        return "%s: %s" % (self.day.schedule.section.name, self.name)
 

	
 
    class SymposionMeta:
 
        select_related = ('kind__schedule__section', 'day')
 

	
 
    class Meta:
 
        ordering = ["day", "start", "end"]
0 comments (0 inline, 0 general)