diff options
author | Filipp Lepalaan <filipp@mac.com> | 2015-11-09 15:35:26 +0200 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2015-11-09 15:35:26 +0200 |
commit | 981855ad27c331a03dbfcec24bd6b49c30681c94 (patch) | |
tree | c2562266267cb17504334ac0e87df581f3c25b18 /servo/models/calendar.py | |
parent | 96432a9a4ff849da6c3f450253198b83cf3fbde9 (diff) | |
download | Servo-981855ad27c331a03dbfcec24bd6b49c30681c94.tar.gz Servo-981855ad27c331a03dbfcec24bd6b49c30681c94.tar.bz2 Servo-981855ad27c331a03dbfcec24bd6b49c30681c94.zip |
Remove username from profile page URLs
Diffstat (limited to 'servo/models/calendar.py')
-rw-r--r-- | servo/models/calendar.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/servo/models/calendar.py b/servo/models/calendar.py index b88faae..e7bf15f 100644 --- a/servo/models/calendar.py +++ b/servo/models/calendar.py @@ -28,7 +28,7 @@ class Calendar(models.Model): hours_per_day = models.FloatField( null=True, blank=True, - verbose_name=_("hours per day"), + verbose_name=_("Hours per day"), help_text=_("How many hours per day should be in this calendar") ) @@ -77,7 +77,7 @@ class Calendar(models.Model): return math.ceil(total/3600.0) def get_absolute_url(self): - return reverse('calendars.view', args=[self.user.username, self.pk]) + return reverse('calendars.view', args=[self.pk]) class Meta: app_label = "servo" |