From 5a02467a3a6572eb62cc381b30dbb7143dd6742a Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Wed, 6 Jul 2016 15:32:13 +0200 Subject: [PATCH 1/1] minor fixes --- src/catalogue/forms.py | 2 +- src/wolnelektury/templates/piston/authorize_token.html | 2 +- src/wolnelektury/wsgi.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/catalogue/forms.py b/src/catalogue/forms.py index ea732db58..c547279ad 100644 --- a/src/catalogue/forms.py +++ b/src/catalogue/forms.py @@ -28,7 +28,7 @@ class BookImportForm(forms.Form): raise forms.ValidationError(_("Please supply an XML.")) return super(BookImportForm, self).clean() - def save(self, commit=True, **kwargs): + def save(self, **kwargs): return Book.from_xml_file(self.cleaned_data['book_xml_file'], overwrite=True, remote_gallery_url=self.cleaned_data['gallery_url'], **kwargs) diff --git a/src/wolnelektury/templates/piston/authorize_token.html b/src/wolnelektury/templates/piston/authorize_token.html index a76823843..03131c713 100755 --- a/src/wolnelektury/templates/piston/authorize_token.html +++ b/src/wolnelektury/templates/piston/authorize_token.html @@ -14,7 +14,7 @@
{% csrf_token %} {{ form.as_p }} - +
{% endblock %} diff --git a/src/wolnelektury/wsgi.py b/src/wolnelektury/wsgi.py index 01a8e1747..245e15ddd 100644 --- a/src/wolnelektury/wsgi.py +++ b/src/wolnelektury/wsgi.py @@ -1,5 +1,5 @@ +# -*- coding: utf-8 -*- import os -import os.path import sys ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) -- 2.20.1