From: Radek Czajka Date: Sun, 4 Aug 2019 19:12:57 +0000 (+0200) Subject: Updates and fixes. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/05b7014d1d710937c6a4b5cdccdb4890f377818d Updates and fixes. --- diff --git a/requirements/requirements.txt b/requirements/requirements.txt index 14b0e38a6..2f877e9bf 100644 --- a/requirements/requirements.txt +++ b/requirements/requirements.txt @@ -2,10 +2,10 @@ # django Django==1.11.22 -fnpdjango==0.3 +fnpdjango==0.4 django-pipeline==1.6.13 jsmin -fnp-django-pagination==2.2.2 +fnp-django-pagination==2.2.3 django-maintenancemode==0.11.3 jsonfield==2.0.2 django-picklefield==1.1.0 diff --git a/src/funding/models.py b/src/funding/models.py index 3e20efc7b..b439ebf94 100644 --- a/src/funding/models.py +++ b/src/funding/models.py @@ -194,7 +194,7 @@ class Offer(models.Model): offer_sum = self.sum() return { 'offer': self, - 'sum': offset_sum, + 'sum': offer_sum, 'is_current': self.is_current(), 'is_win': offer_sum >= self.target, 'missing': self.target - offer_sum, diff --git a/src/wolnelektury/settings/basic.py b/src/wolnelektury/settings/basic.py index 006e9e007..c6485d64a 100644 --- a/src/wolnelektury/settings/basic.py +++ b/src/wolnelektury/settings/basic.py @@ -66,7 +66,7 @@ TEMPLATES = [{ }, }] -MIDDLEWARE_CLASSES = [ +MIDDLEWARE = [ 'debug_toolbar.middleware.DebugToolbarMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.middleware.cache.UpdateCacheMiddleware',