# HG changeset patch # User Brian Neal # Date 1339462786 18000 # Node ID 7d005ebd8deb84daf51ff37233ec3be5b6f3e00f # Parent cc39f34ce12b39c1fe6ecce129df72dc740d4b5e For issue #15, add date information to forum search results. diff -r cc39f34ce12b -r 7d005ebd8deb forums/models.py --- a/forums/models.py Mon Jun 11 19:38:52 2012 -0500 +++ b/forums/models.py Mon Jun 11 19:59:46 2012 -0500 @@ -327,7 +327,8 @@ self.update_date = datetime.datetime.now() def search_title(self): - return u"%s by %s" % (self.topic.name, self.user.username) + return u"%s by %s (%s)" % (self.topic.name, self.user.username, + self.creation_date.strftime('%d-%b-%Y')) def search_summary(self): return self.body