Skip to content

Commit

Permalink
Fixing MetricWeek date formatting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
frankwiles committed Feb 8, 2012
1 parent 6b5da6a commit bdba3ee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app_metrics/models.py
Expand Up @@ -85,8 +85,9 @@ class Meta:
verbose_name_plural = 'By Week Metrics' verbose_name_plural = 'By Week Metrics'


def __unicode__(self): def __unicode__(self):
return "'%s' for week %d of %d" % (self.metric.name, return "'%s' for week %s of %s" % (self.metric.name,
self.created.strftime("%m")) self.created.strftime("%U"),
self.created.strftime("%Y"))


class MetricMonth(models.Model): class MetricMonth(models.Model):
""" Aggregation of Metrics on monthly basis """ """ Aggregation of Metrics on monthly basis """
Expand Down

0 comments on commit bdba3ee

Please sign in to comment.