From a5ccb836a3a281c6526a497a4426335eedbcad93 Mon Sep 17 00:00:00 2001 From: Ernesto Rico-Schmidt Date: Fri, 25 Mar 2011 22:07:29 +0100 Subject: simplified unicode representation of a program slot. diff --git a/program/models.py b/program/models.py index b73e7ac..f6839e2 100644 --- a/program/models.py +++ b/program/models.py @@ -171,14 +171,13 @@ class ProgramSlot(models.Model): tend = self.tend.strftime('%H:%M') dstart = self.dstart.strftime('%d. %b %Y') tstart = self.tstart.strftime('%H:%M') - until = self.until.strftime('%d. %b %Y') if self.rrule.freq == 0: - return u'%s - %s, %s - %s' % (tstart, tend, dstart, until) + return u'%s, %s - %s' % (dstart, tstart, tend) if self.rrule.freq == 3: - return u'%s, %s - %s, %s - %s' % (self.rrule, tstart, tend, dstart, until) + return u'%s, %s - %s' % (self.rrule, tstart, tend) else: - return u'%s, %s, %s - %s, %s - %s' % (self.rrule, weekday, tstart, tend, dstart, until) + return u'%s, %s, %s - %s' % (weekday, self.rrule, tstart, tend) def save(self, *args, **kwargs): if not self.pk: -- cgit v0.10.2