From b4b060a962bb9c7883f668fdb5ccc1b993be36c9 Mon Sep 17 00:00:00 2001 From: Wookey Date: Tue, 12 Jul 2011 00:57:48 +0100 Subject: Add odt and ods mime types to our list. Maybe this should just be read in from the real list... --- flatpages/views.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'flatpages/views.py') diff --git a/flatpages/views.py b/flatpages/views.py index 11cb457..e9db223 100644 --- a/flatpages/views.py +++ b/flatpages/views.py @@ -84,6 +84,8 @@ def getmimetype(path): if path.endswith(".3d"): return "application/x-survex-3d" if path.endswith(".pos"): return "application/x-survex-pos" if path.endswith(".err"): return "application/x-survex-err" + if path.endswith(".odt"): return "application/vnd.oasis.opendocument.text" + if path.endswith(".ods"): return "application/vnd.oasis.opendocument.spreadsheet" return "" @login_required_if_public -- cgit v1.2.3