From ed3d74e61300f91818eeff9dad7e9d35c556f75a Mon Sep 17 00:00:00 2001 From: Weitian LI Date: Tue, 24 Jun 2014 16:39:42 +0800 Subject: Added app schedule, tools and archive/templatetags; updated settings. * Added app 'schedule' to provides a more generic schedule page * Added fake app 'tools' to holds generic utilities * Moved notice/templatetags to tools/templatetags * Small change to archive.models.Archive display format * Added archive/templatetags * Small update to introduction page --- archive/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'archive/models.py') diff --git a/archive/models.py b/archive/models.py index 791750a..47903e4 100644 --- a/archive/models.py +++ b/archive/models.py @@ -30,7 +30,8 @@ class Archive(models.Model): ordering = ['category', '-pubtime', 'id'] def __unicode__(self): - return u'Archive %s: %s' % (self.category.name, self.title) + return u'Archive #%s: (%s) %s' % ( + self.id, self.category.name, self.title) def show_pubtime(self): # used in 'list_notice.html' template -- cgit v1.2.2