From: Jan Szejko Date: Wed, 6 Jul 2016 13:32:13 +0000 (+0200) Subject: minor fixes X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/5a02467a3a6572eb62cc381b30dbb7143dd6742a?ds=sidebyside;hp=212c71fa46809d1d2b98f529c97bf785551e0945 minor fixes --- 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__)))