[virtualcommons-svn] commit/vcweb: alllee: adding ordering and unicode to ActivityAvailability
Status: Beta
Brought to you by:
alllee
From: Bitbucket <com...@bi...> - 2011-07-08 02:21:09
|
1 new changeset in vcweb: http://bitbucket.org/virtualcommons/vcweb/changeset/bd3fb22a1d74/ changeset: bd3fb22a1d74 user: alllee date: 2011-07-08 04:21:11 summary: adding ordering and unicode to ActivityAvailability affected #: 1 file (202 bytes) --- a/vcweb/lighterprints/models.py Thu Jul 07 13:50:26 2011 -0700 +++ b/vcweb/lighterprints/models.py Thu Jul 07 19:21:11 2011 -0700 @@ -42,6 +42,12 @@ available_start_time = models.TimeField(null=True, blank=True) available_end_time = models.TimeField(null=True, blank=True) + def __unicode__(self): + return u'%s (%s - %s)' % (self.activity, self.available_start_time, self.available_end_time) + + class Meta: + ordering = ['activity', 'available_start_time'] + @simplecache def get_lighterprints_experiment_metadata(): return ExperimentMetadata.objects.get(namespace='lighterprints') Repository URL: https://bitbucket.org/virtualcommons/vcweb/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. |