Bugfix for Countdown
- error when for the next event no displaytime was available - better display when no time or location for the next event is known
This commit is contained in:
@@ -61,8 +61,14 @@ class Event ( models.Model ):
|
||||
else:
|
||||
return self.meeting_time
|
||||
|
||||
@property
|
||||
def displaydatetime(self):
|
||||
if not self.displaytime == None:
|
||||
return datetime.combine( self.date, self.displaytime() )
|
||||
else:
|
||||
return datetime.combine( self.date, datetime.min.time())
|
||||
|
||||
|
||||
|
||||
|
||||
class EventParticipation( models.Model ):
|
||||
OPTIONS = ( ('?' , _('?' )),
|
||||
|
||||
Reference in New Issue
Block a user