diff options
author | Weitian LI <liweitianux@gmail.com> | 2014-04-23 23:51:12 +0800 |
---|---|---|
committer | Weitian LI <liweitianux@gmail.com> | 2014-04-23 23:51:12 +0800 |
commit | 9a4e3be3f042e39a72e5d8f2f791d437d74051a5 (patch) | |
tree | f9f05b57dc42b9d5447c4e4f0fca306f85b94a93 /notice/templates | |
parent | 80dd527263a6372140e3a94ee8e28d095054e1ac (diff) | |
download | django-skaschool-9a4e3be3f042e39a72e5d8f2f791d437d74051a5.tar.bz2 |
* update display attachments in list_notice template
* removed 'get_attachment_list' method from Notice model
Diffstat (limited to 'notice/templates')
-rw-r--r-- | notice/templates/notice/list_notice.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/notice/templates/notice/list_notice.html b/notice/templates/notice/list_notice.html index 77d194c..2a2703b 100644 --- a/notice/templates/notice/list_notice.html +++ b/notice/templates/notice/list_notice.html @@ -29,7 +29,7 @@ {% if notice.attachments %} <div class="notice-attachment"> <ul class="list-unstyled"> - {% for attachment in notice.get_attachment_list %} + {% for attachment in notice.attachments.all %} <li> 附件{{ forloop.counter }}: <a href="{{ attachment.attachment.url }}">{{ attachment.title }}</a> |