diff options
author | Aamir Khan <syst3m.w0rm@gmail.com> | 2012-08-10 06:39:29 +0530 |
---|---|---|
committer | Aamir Khan <syst3m.w0rm@gmail.com> | 2012-08-10 06:39:29 +0530 |
commit | c629cbceabddd5335dc42f7a3916e9c3d1a06db8 (patch) | |
tree | e687d7946d7296d9640194718582faf36daa6a37 /hyperkitty/views | |
parent | e5dc1c48ea48177e21cff6670a2dbf0c4c4cf262 (diff) | |
download | hyperkitty-c629cbceabddd5335dc42f7a3916e9c3d1a06db8.tar.gz hyperkitty-c629cbceabddd5335dc42f7a3916e9c3d1a06db8.tar.xz hyperkitty-c629cbceabddd5335dc42f7a3916e9c3d1a06db8.zip |
Feature : Add tag to email threads
Diffstat (limited to 'hyperkitty/views')
-rw-r--r-- | hyperkitty/views/thread.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/hyperkitty/views/thread.py b/hyperkitty/views/thread.py index c352297..4cafa37 100644 --- a/hyperkitty/views/thread.py +++ b/hyperkitty/views/thread.py @@ -69,9 +69,16 @@ def thread_index (request, mlist_fqdn, threadid): archives_length = STORE.get_archives_length(list_name) from_url = '/thread/%s/%s/' % (mlist_fqdn, threadid) tag_form = AddTagForm(initial={'from_url' : from_url}) + + try: + tags = Tag.objects.filter(threadid=threadid) + except Tag.DoesNotExist: + tags = {} c = RequestContext(request, { 'list_name' : list_name, + 'threadid' : threadid, + 'tags' : tags, 'list_address': mlist_fqdn, 'search_form': search_form, 'addtag_form': tag_form, |