+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
@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))
-@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;
-@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;