From 8fddc6c47040c345677bfb6f8b729fb973c5654a Mon Sep 17 00:00:00 2001 From: Charles Connell Date: Tue, 11 Mar 2014 18:06:03 -0400 Subject: [PATCH] Rollback fix from yesterday --- karmaworld/apps/notes/models.py | 4 ---- karmaworld/templates/notes/note_detail.html | 18 ++++-------------- 2 files changed, 4 insertions(+), 18 deletions(-) diff --git a/karmaworld/apps/notes/models.py b/karmaworld/apps/notes/models.py index 45c4caa..10ab87a 100644 --- a/karmaworld/apps/notes/models.py +++ b/karmaworld/apps/notes/models.py @@ -157,10 +157,6 @@ class Document(models.Model): """ Returns the Filepicker URL for reading the upstream document. """ - # Fetch FilepickerFile - if not self.fp_file.name: - return None - fpf = self._get_fpf() # Return proper URL for reading return fpf.get_url() diff --git a/karmaworld/templates/notes/note_detail.html b/karmaworld/templates/notes/note_detail.html index 52286c3..0f6ac93 100644 --- a/karmaworld/templates/notes/note_detail.html +++ b/karmaworld/templates/notes/note_detail.html @@ -116,25 +116,15 @@
- {% if note.get_fp_url %} - - note_download - - {% else %} + note_download - {% endif %} +
{% else %}
-- 2.25.1