summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2011-09-10 09:20:02 (GMT)
committerErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2011-09-10 09:20:02 (GMT)
commit9f89448279c851ede5c8684a53d3d5ac573d2af9 (patch)
tree2336b4638e7ac62d4facb3eca5a737198df90d39
parentba7d9ecbfa062a5c9438fecb08b7ab4aad5044be (diff)
fixed save method for Programslot.
-rw-r--r--program/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/models.py b/program/models.py
index ef3ee0c..89bf8f8 100644
--- a/program/models.py
+++ b/program/models.py
@@ -182,9 +182,9 @@ class ProgramSlot(models.Model):
return u'%s, %s, %s - %s' % (weekday, self.rrule, tstart, tend)
def save(self, *args, **kwargs):
- if not self.pk:
- super(ProgramSlot, self).save(*args, **kwargs)
+ super(ProgramSlot, self).save(*args, **kwargs)
+ if not self.pk:
if self.rrule.freq == 0:
byweekday_start = None
byweekday_end = None