From d0ba00309b431fd255d6f52eba6d978751057475 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Tue, 30 Sep 2014 16:00:37 +0200 Subject: [PATCH] Simple fixes. --- contact/views.py | 3 ++- prawokultury/static/css/base.css | 4 +++- prawokultury/static/css/base.scss | 5 ++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/contact/views.py b/contact/views.py index e4dfeef..5c1343c 100644 --- a/contact/views.py +++ b/contact/views.py @@ -1,3 +1,4 @@ +from urllib import unquote from django.contrib.auth.decorators import permission_required from django.http import Http404, HttpResponse from django.shortcuts import get_object_or_404, redirect, render @@ -37,4 +38,4 @@ def thanks(request, form_tag): @permission_required('contact.change_attachment') def attachment(request, contact_id, tag): attachment = get_object_or_404(Attachment, contact_id=contact_id, tag=tag) - return serve_file(attachment.file.url) + return serve_file(unquote(attachment.file.url)) diff --git a/prawokultury/static/css/base.css b/prawokultury/static/css/base.css index 5103bab..f87b230 100644 --- a/prawokultury/static/css/base.css +++ b/prawokultury/static/css/base.css @@ -1,4 +1,6 @@ -@import url(//fonts.googleapis.com/css?family=Lato:400,700,400italic); +@import url(//static.mdrn.pl/fonts/Lato2OFLWeb/Lato/Lato-Regular.css); +@import url(//static.mdrn.pl/fonts/Lato2OFLWeb/Lato/Lato-Bold.css); +@import url(//static.mdrn.pl/fonts/Lato2OFLWeb/Lato/Lato-Italic.css); body { font-family: 'Lato', sans-serif; font-size: .625em; diff --git a/prawokultury/static/css/base.scss b/prawokultury/static/css/base.scss index bee2f37..5647302 100644 --- a/prawokultury/static/css/base.scss +++ b/prawokultury/static/css/base.scss @@ -1,4 +1,7 @@ -@import url(//fonts.googleapis.com/css?family=Lato:400,700,400italic); +@import url(//static.mdrn.pl/fonts/Lato2OFLWeb/Lato/Lato-Regular.css); +@import url(//static.mdrn.pl/fonts/Lato2OFLWeb/Lato/Lato-Bold.css); +@import url(//static.mdrn.pl/fonts/Lato2OFLWeb/Lato/Lato-Italic.css); + body { font-family: 'Lato', sans-serif; -- 2.20.1