minor fixes
authorJan Szejko <jan.szejko@gmail.com>
Wed, 6 Jul 2016 13:32:13 +0000 (15:32 +0200)
committerJan Szejko <jan.szejko@gmail.com>
Wed, 6 Jul 2016 13:32:13 +0000 (15:32 +0200)
src/catalogue/forms.py
src/wolnelektury/templates/piston/authorize_token.html
src/wolnelektury/wsgi.py

index ea732db..c547279 100644 (file)
@@ -28,7 +28,7 @@ class BookImportForm(forms.Form):
                 raise forms.ValidationError(_("Please supply an XML."))
         return super(BookImportForm, self).clean()
 
                 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)
 
         return Book.from_xml_file(self.cleaned_data['book_xml_file'], overwrite=True,
                                   remote_gallery_url=self.cleaned_data['gallery_url'], **kwargs)
 
index a768238..03131c7 100755 (executable)
@@ -14,7 +14,7 @@
     <form action="{% url 'piston.authentication.oauth_user_auth' %}" method="POST">
       {% csrf_token %}
       {{ form.as_p }}
     <form action="{% url 'piston.authentication.oauth_user_auth' %}" method="POST">
       {% csrf_token %}
       {{ form.as_p }}
-      <button type="submit">Confirm</button>
+      <button type="submit">{% trans "Confirm" %}</button>
     </form>
   </div>
 {% endblock %}
     </form>
   </div>
 {% endblock %}
index 01a8e17..245e15d 100644 (file)
@@ -1,5 +1,5 @@
+# -*- coding: utf-8 -*-
 import os
 import os
-import os.path
 import sys
 
 ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
 import sys
 
 ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))