Permalink
Browse files

Added description to alert string

  • Loading branch information...
1 parent b6ad94c commit 9b1e5ebb2fbaca3d6fb75f6cdd52f8e1b8317367 @alexsikora committed Apr 15, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 events/models.py
View
@@ -153,7 +153,10 @@ def alert_string(self):
map = ""
if self.game_map is not None:
map = self.game_map.name
- return winner.handle + " defeats " + loser.handle + " in game " + str(self.game_number) + " on " + map
+ description = ""
+ if self.description is not None:
+ description = self.description
+ return winner.handle + " defeats " + loser.handle + " in game " + str(self.game_number) + " on " + map + " summary: " + description
def send_alert(sender, instance, created, **kwargs):

0 comments on commit 9b1e5eb

Please sign in to comment.