git://git.onelab.eu
/
plstackapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
acd4514
)
show endtime in reservation unicode
author
Scott Baker
<smbaker@gmail.com>
Sun, 19 May 2013 23:19:48 +0000
(16:19 -0700)
committer
Scott Baker
<smbaker@gmail.com>
Sun, 19 May 2013 23:19:48 +0000
(16:19 -0700)
planetstack/core/models/reservation.py
patch
|
blob
|
history
diff --git
a/planetstack/core/models/reservation.py
b/planetstack/core/models/reservation.py
index
4aeaadd
..
e445228
100644
(file)
--- a/
planetstack/core/models/reservation.py
+++ b/
planetstack/core/models/reservation.py
@@
-13,7
+13,7
@@
class Reservation(PlCoreBase):
slice = models.ForeignKey(Slice, related_name="reservations")
duration = models.IntegerField(default=1)
- def __unicode__(self): return u'%s
duration %d' % (self.startTime, self.duration
)
+ def __unicode__(self): return u'%s
to %s' % (self.startTime, self.endTime
)
@property
def endTime(self):