models: use 'inbox-message' url endpoint in Document.url()

fixes #4249
This commit is contained in:
Benjamin Dauvergne 2014-01-23 16:43:29 +01:00
parent d3bc263d78
commit 68b765efec
2 changed files with 4 additions and 1 deletions

View File

@ -5,7 +5,9 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{% trans "site_title" %} — {% block title %}{% endblock %}</title>
{% block jquery_script %}
<script src="{{ STATIC_URL }}jquery/js/jquery-1.6.2.min.js" type="text/javascript"></script>
<script>//<![CDATA[
if(!window.jQuery) document.write('<scr'+'ipt src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></scr'+'ipt>');
//]]></script>
{% endblock %}
{% block extra_scripts %}
{% endblock %}

View File

@ -188,6 +188,7 @@ def send_file(request, file_type_id):
recipients_count=recipients_count)
return redirect('outbox')
except Exception:
raise
import logging
logging.getLogger(__name__).exception('unable to create a new document')