Permalink
Browse files

Fixing MetricWeek date formatting issue

  • Loading branch information...
1 parent 6b5da6a commit bdba3ee5e2ade5d59187e69da3f649cdd92f760e @frankwiles committed Feb 8, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 app_metrics/models.py
View
@@ -85,8 +85,9 @@ class Meta:
verbose_name_plural = 'By Week Metrics'
def __unicode__(self):
- return "'%s' for week %d of %d" % (self.metric.name,
- self.created.strftime("%m"))
+ return "'%s' for week %s of %s" % (self.metric.name,
+ self.created.strftime("%U"),
+ self.created.strftime("%Y"))
class MetricMonth(models.Model):
""" Aggregation of Metrics on monthly basis """

0 comments on commit bdba3ee

Please sign in to comment.