Passing for Django 1.11.
authorRadek Czajka <rczajka@rczajka.pl>
Sat, 16 Feb 2019 23:16:11 +0000 (00:16 +0100)
committerRadek Czajka <rczajka@rczajka.pl>
Sat, 16 Feb 2019 23:16:11 +0000 (00:16 +0100)
requirements/requirements.txt
src/opds/views.py
src/search/fields.py
src/wolnelektury/settings/static.py

index f9374c3..ed0ee16 100644 (file)
@@ -1,16 +1,16 @@
 -i https://py.mdrn.pl/simple/
 
 # django
-Django>=1.10,<1.11
+Django==1.11.20
 fnpdjango==0.3
-django-pipeline==1.6.10
+django-pipeline==1.6.13
 jsmin
 fnp-django-pagination==2.2.2
 django-maintenancemode==0.10
 jsonfield==2.0.2
 django-picklefield>=1.0,<1.1
-django-modeltranslation==0.12
-django-allauth>=0.32,<0.33
+django-modeltranslation==0.12.1
+django-allauth==0.38.0
 django-extensions==1.7.8
 djangorestframework<3.7
 djangorestframework-xml
@@ -20,7 +20,7 @@ oauthlib>=3.0.1,<3.1
 pyyaml
 
 polib
-django-babel==0.6.0
+django-babel==0.6.1
 
 pytz
 
index adfd073..004ee5b 100644 (file)
@@ -79,13 +79,13 @@ class OPDSFeed(Atom1Feed):
     _book_parent_img = lazy(lambda: full_url(os.path.join(settings.STATIC_URL, "img/book-parent.png")), str)()
     try:
         _book_parent_img_size = unicode(os.path.getsize(os.path.join(settings.STATIC_ROOT, "img/book-parent.png")))
-    except IOError:
+    except OSError:
         _book_parent_img_size = ''
 
     _book_img = lazy(lambda: full_url(os.path.join(settings.STATIC_URL, "img/book.png")), str)()
     try:
         _book_img_size = unicode(os.path.getsize(os.path.join(settings.STATIC_ROOT, "img/book.png")))
-    except IOError:
+    except OSError:
         _book_img_size = ''
 
     def add_root_elements(self, handler):
index 1dc7870..9572fa3 100755 (executable)
@@ -3,7 +3,7 @@
 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
 #
 from django import forms
-from django.forms.widgets import flatatt
+from django.forms.utils import flatatt
 from django.utils.encoding import smart_unicode
 from django.utils.safestring import mark_safe
 from json import dumps
@@ -18,7 +18,7 @@ class JQueryAutoCompleteWidget(forms.TextInput):
         return u'$(\'#%s\').autocomplete(%s).result(autocomplete_result_handler);' % (field_id, options)
 
     def render(self, name, value=None, attrs=None):
-        final_attrs = self.build_attrs(attrs, name=name)
+        final_attrs = self.build_attrs(self.attrs, attrs)
         if value:
             final_attrs['value'] = smart_unicode(value)
 
index 146e35b..f6411cc 100644 (file)
@@ -182,6 +182,7 @@ PIPELINE = {
 }
 
 STATICFILES_STORAGE = 'fnpdjango.pipeline_storage.GzipPipelineCachedStorage'
+#STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage'
 
 # PIPELINE_PYSCSS_BINARY = '/usr/bin/env pyscss'
 # PIPELINE_PYSCSS_ARGUMENTS = ''
@@ -190,5 +191,6 @@ STATICFILES_STORAGE = 'fnpdjango.pipeline_storage.GzipPipelineCachedStorage'
 STATICFILES_FINDERS = [
     'django.contrib.staticfiles.finders.FileSystemFinder',
     'django.contrib.staticfiles.finders.AppDirectoriesFinder',
+    'pipeline.finders.CachedFileFinder',
     'pipeline.finders.PipelineFinder',
 ]