From 2b9a3205beee9e42adeb717f9f07f933653fe210 Mon Sep 17 00:00:00 2001 From: Jessica McKellar Date: Tue, 28 Aug 2012 15:27:42 -0400 Subject: [PATCH] Switch zephyrs to the notion of a "Recipient", which is either a class or user. (imported from commit edc46267dab9cc972358b6020ca28b009e15d8c5) --- humbug/settings.py | 1 - templates/zephyr/index.html | 6 ++-- zephyr/management/commands/populate_db.py | 14 ++++++--- zephyr/models.py | 6 +++- zephyr/views.py | 38 ++++++++++++++++++++--- 5 files changed, 52 insertions(+), 13 deletions(-) diff --git a/humbug/settings.py b/humbug/settings.py index 84e5ef1d97..c72d979e81 100644 --- a/humbug/settings.py +++ b/humbug/settings.py @@ -46,7 +46,6 @@ USE_TZ = True SITE_ROOT = os.path.realpath(os.path.dirname(__file__)) TEMPLATE_DIRS = ( os.path.join(SITE_ROOT, '..', 'templates'),) -print TEMPLATE_DIRS # URL that handles the media served from MEDIA_ROOT. Make sure to use a # trailing slash. diff --git a/templates/zephyr/index.html b/templates/zephyr/index.html index 4cf65b67ca..f6cac92b69 100644 --- a/templates/zephyr/index.html +++ b/templates/zephyr/index.html @@ -138,8 +138,8 @@ function get_updates() { var new_str = " \

\ \ -

" + zephyr.zephyr_class.name + -" / " + zephyr.instance + " / " + zephyr.sender + "
" + +

" + zephyr.zephyr_class + +" / " + zephyr.instance + " / " + zephyr.sender + "
" + zephyr.content + "

\ " @@ -165,7 +165,7 @@ Content: