fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
2ecf099
)
Django 2.2
author
Radek Czajka
<rczajka@rczajka.pl>
Mon, 12 Aug 2019 13:51:34 +0000
(15:51 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Mon, 12 Aug 2019 13:51:34 +0000
(15:51 +0200)
14 files changed:
requirements/requirements.txt
patch
|
blob
|
history
src/catalogue/templates/catalogue/player.html
patch
|
blob
|
history
src/catalogue/templates/catalogue/snippets/license_icon.html
patch
|
blob
|
history
src/catalogue/templates/catalogue/viewer_base.html
patch
|
blob
|
history
src/catalogue/tests/test_book_import.py
patch
|
blob
|
history
src/club/templates/club/payment/paypal.html
patch
|
blob
|
history
src/club/templates/club/payment/payu-re.html
patch
|
blob
|
history
src/club/templates/club/payment/payu.html
patch
|
blob
|
history
src/paypal/templates/paypal/form.html
patch
|
blob
|
history
src/picture/templates/picture/picture_viewer.html
patch
|
blob
|
history
src/waiter/templates/waiter/wait.html
patch
|
blob
|
history
src/wolnelektury/settings/apps.py
patch
|
blob
|
history
src/wolnelektury/settings/basic.py
patch
|
blob
|
history
src/wolnelektury/templates/socialaccount/snippets/provider_list.html
patch
|
blob
|
history
diff --git
a/requirements/requirements.txt
b/requirements/requirements.txt
index
97ed035
..
b3fc758
100644
(file)
--- a/
requirements/requirements.txt
+++ b/
requirements/requirements.txt
@@
-1,7
+1,7
@@
-i https://py.mdrn.pl/simple/
# django
-i https://py.mdrn.pl/simple/
# django
-Django==2.
1.11
+Django==2.
2.4
fnpdjango==0.4
#django-pipeline==1.6.13
fnpdjango==0.4
#django-pipeline==1.6.13
diff --git
a/src/catalogue/templates/catalogue/player.html
b/src/catalogue/templates/catalogue/player.html
index
8412a3a
..
2a48500
100755
(executable)
--- a/
src/catalogue/templates/catalogue/player.html
+++ b/
src/catalogue/templates/catalogue/player.html
@@
-1,6
+1,6
@@
<!DOCTYPE html>
<html>
<!DOCTYPE html>
<html>
- {% load static from static
files
%}
+ {% load static from static %}
{% load i18n pipeline %}
{% load catalogue_tags %}
{% load thumbnail %}
{% load i18n pipeline %}
{% load catalogue_tags %}
{% load thumbnail %}
diff --git
a/src/catalogue/templates/catalogue/snippets/license_icon.html
b/src/catalogue/templates/catalogue/snippets/license_icon.html
index
0dbdad3
..
c9e212e
100755
(executable)
--- a/
src/catalogue/templates/catalogue/snippets/license_icon.html
+++ b/
src/catalogue/templates/catalogue/snippets/license_icon.html
@@
-1,5
+1,5
@@
{% load i18n %}
{% load i18n %}
-{% load static from static
files
%}
+{% load static from static %}
{% if license_url %}
<a class="license-icon" href="{{ license_url }}"
{% if license_url %}
<a class="license-icon" href="{{ license_url }}"
diff --git
a/src/catalogue/templates/catalogue/viewer_base.html
b/src/catalogue/templates/catalogue/viewer_base.html
index
cdee8d8
..
a975d67
100644
(file)
--- a/
src/catalogue/templates/catalogue/viewer_base.html
+++ b/
src/catalogue/templates/catalogue/viewer_base.html
@@
-1,6
+1,6
@@
<!DOCTYPE html>
{% load i18n %}
<!DOCTYPE html>
{% load i18n %}
-{% load static from static
files
%}
+{% load static from static %}
{% load pipeline %}
{% load piwik_tags %}
<html class="no-js">
{% load pipeline %}
{% load piwik_tags %}
<html class="no-js">
diff --git
a/src/catalogue/tests/test_book_import.py
b/src/catalogue/tests/test_book_import.py
index
d369924
..
9ad22a4
100644
(file)
--- a/
src/catalogue/tests/test_book_import.py
+++ b/
src/catalogue/tests/test_book_import.py
@@
-39,7
+39,7
@@
class BookImportLogicTests(WLTestCase):
self.assertEqual(book.title, "Default Book")
self.assertEqual(book.slug, "default-book")
self.assertEqual(book.title, "Default Book")
self.assertEqual(book.slug, "default-book")
- self.assert
_
(book.parent is None)
+ self.assert
True
(book.parent is None)
self.assertFalse(book.has_html_file())
# no fragments generated
self.assertFalse(book.has_html_file())
# no fragments generated
@@
-85,7
+85,7
@@
class BookImportLogicTests(WLTestCase):
self.assertEqual(book.fragments.count(), 1)
self.assertEqual(book.fragments.all()[0].text, '<p class="paragraph">Ala ma kota</p>\n')
self.assertEqual(book.fragments.count(), 1)
self.assertEqual(book.fragments.all()[0].text, '<p class="paragraph">Ala ma kota</p>\n')
- self.assert
_
(('theme', 'love') in [(tag.category, tag.slug) for tag in book.fragments.all()[0].tags])
+ self.assert
True
(('theme', 'love') in [(tag.category, tag.slug) for tag in book.fragments.all()[0].tags])
def test_book_with_empty_theme(self):
""" empty themes should be ignored """
def test_book_with_empty_theme(self):
""" empty themes should be ignored """
@@
-97,7
+97,7
@@
class BookImportLogicTests(WLTestCase):
"""
book = models.Book.from_text_and_meta(ContentFile(book_text), self.book_info)
"""
book = models.Book.from_text_and_meta(ContentFile(book_text), self.book_info)
- self.assert
_
([('theme', 'love')],
+ self.assert
True
([('theme', 'love')],
book.fragments.all()[0].tags.filter(category='theme').values_list('category', 'slug'))
def test_book_with_no_theme(self):
book.fragments.all()[0].tags.filter(category='theme').values_list('category', 'slug'))
def test_book_with_no_theme(self):
diff --git
a/src/club/templates/club/payment/paypal.html
b/src/club/templates/club/payment/paypal.html
index
befd9f2
..
81c7504
100644
(file)
--- a/
src/club/templates/club/payment/paypal.html
+++ b/
src/club/templates/club/payment/paypal.html
@@
-1,3
+1,3
@@
-{% load static
files
%}
+{% load static %}
<img src="{% static 'club/paypal.png' %}">
<img src="{% static 'club/paypal.png' %}">
diff --git
a/src/club/templates/club/payment/payu-re.html
b/src/club/templates/club/payment/payu-re.html
index
a1bc573
..
8f90d53
100644
(file)
--- a/
src/club/templates/club/payment/payu-re.html
+++ b/
src/club/templates/club/payment/payu-re.html
@@
-1,4
+1,4
@@
-{% load static
files
%}
+{% load static %}
<img src="{% static 'club/payu/payu.png' %}">
<img src="{% static 'club/visa-100.png' %}">
<img src="{% static 'club/mastercard.png' %}">
<img src="{% static 'club/payu/payu.png' %}">
<img src="{% static 'club/visa-100.png' %}">
<img src="{% static 'club/mastercard.png' %}">
diff --git
a/src/club/templates/club/payment/payu.html
b/src/club/templates/club/payment/payu.html
index
60e6b6d
..
4a3c798
100644
(file)
--- a/
src/club/templates/club/payment/payu.html
+++ b/
src/club/templates/club/payment/payu.html
@@
-1,4
+1,4
@@
-{% load static
files
%}
+{% load static %}
<img src="{% static 'club/payu/payu.png' %}">
<img src="{% static 'club/payu/blik.png' %}">
<img src="{% static 'club/visa-100.png' %}">
<img src="{% static 'club/payu/payu.png' %}">
<img src="{% static 'club/payu/blik.png' %}">
<img src="{% static 'club/visa-100.png' %}">
diff --git
a/src/paypal/templates/paypal/form.html
b/src/paypal/templates/paypal/form.html
index
9f4c76b
..
92a755a
100644
(file)
--- a/
src/paypal/templates/paypal/form.html
+++ b/
src/paypal/templates/paypal/form.html
@@
-1,7
+1,7
@@
{% extends "base/base.html" %}
{% load i18n %}
{% load chunks %}
{% extends "base/base.html" %}
{% load i18n %}
{% load chunks %}
-{% load static from static
files
%}
+{% load static from static %}
{% block title %}{% trans "Wolne Lektury Friend Club" %}{% endblock %}
{% block title %}{% trans "Wolne Lektury Friend Club" %}{% endblock %}
@@
-22,4
+22,4
@@
{% endif %}
{% chunk "klub_info" %}
</div>
{% endif %}
{% chunk "klub_info" %}
</div>
-{% endblock %}
\ No newline at end of file
+{% endblock %}
diff --git
a/src/picture/templates/picture/picture_viewer.html
b/src/picture/templates/picture/picture_viewer.html
index
6c35fe0
..
3bd27b6
100644
(file)
--- a/
src/picture/templates/picture/picture_viewer.html
+++ b/
src/picture/templates/picture/picture_viewer.html
@@
-1,6
+1,6
@@
{% extends "catalogue/viewer_base.html" %}
{% load i18n %}
{% extends "catalogue/viewer_base.html" %}
{% load i18n %}
-{% load static from static
files
%}
+{% load static from static %}
{% load catalogue_tags %}
{% load thumbnail %}
{% load catalogue_tags %}
{% load thumbnail %}
diff --git
a/src/waiter/templates/waiter/wait.html
b/src/waiter/templates/waiter/wait.html
index
0a0fb0d
..
22f5af8
100644
(file)
--- a/
src/waiter/templates/waiter/wait.html
+++ b/
src/waiter/templates/waiter/wait.html
@@
-1,6
+1,6
@@
{% extends "base/base.html" %}
{% load i18n %}
{% extends "base/base.html" %}
{% load i18n %}
-{% load static from static
files
%}
+{% load static from static %}
{% block titleextra %}
{% if file_url %}
{% block titleextra %}
{% if file_url %}
diff --git
a/src/wolnelektury/settings/apps.py
b/src/wolnelektury/settings/apps.py
index
320f6dd
..
7797d3a
100644
(file)
--- a/
src/wolnelektury/settings/apps.py
+++ b/
src/wolnelektury/settings/apps.py
@@
-41,6
+41,7
@@
INSTALLED_APPS_CONTRIB = [
# external
'django.contrib.auth',
'django.contrib.contenttypes',
# external
'django.contrib.auth',
'django.contrib.contenttypes',
+ 'django.contrib.messages',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
diff --git
a/src/wolnelektury/settings/basic.py
b/src/wolnelektury/settings/basic.py
index
c6485d6
..
294ee45
100644
(file)
--- a/
src/wolnelektury/settings/basic.py
+++ b/
src/wolnelektury/settings/basic.py
@@
-55,6
+55,7
@@
TEMPLATES = [{
),
'context_processors': (
'django.contrib.auth.context_processors.auth',
),
'context_processors': (
'django.contrib.auth.context_processors.auth',
+ 'django.contrib.messages.context_processors.messages',
'django.template.context_processors.debug',
'django.template.context_processors.i18n',
'django.template.context_processors.media',
'django.template.context_processors.debug',
'django.template.context_processors.i18n',
'django.template.context_processors.media',
diff --git
a/src/wolnelektury/templates/socialaccount/snippets/provider_list.html
b/src/wolnelektury/templates/socialaccount/snippets/provider_list.html
index
3f467b1
..
61b3902
100644
(file)
--- a/
src/wolnelektury/templates/socialaccount/snippets/provider_list.html
+++ b/
src/wolnelektury/templates/socialaccount/snippets/provider_list.html
@@
-1,5
+1,6
@@
{% load socialaccount %}
{% load socialaccount %}
-{% load static from staticfiles %}
+
+{% load static from static %}
{% get_providers as providers %}
{% for provider in providers %}
{% get_providers as providers %}
{% for provider in providers %}