Updates and fixes.
authorRadek Czajka <rczajka@rczajka.pl>
Sun, 4 Aug 2019 19:12:57 +0000 (21:12 +0200)
committerRadek Czajka <rczajka@rczajka.pl>
Sun, 4 Aug 2019 19:12:57 +0000 (21:12 +0200)
requirements/requirements.txt
src/funding/models.py
src/wolnelektury/settings/basic.py

index 14b0e38..2f877e9 100644 (file)
@@ -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
index 3e20efc..b439ebf 100644 (file)
@@ -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,
index 006e9e0..c6485d6 100644 (file)
@@ -66,7 +66,7 @@ TEMPLATES = [{
     },
 }]
 
-MIDDLEWARE_CLASSES = [
+MIDDLEWARE = [
     'debug_toolbar.middleware.DebugToolbarMiddleware',
     'django.middleware.csrf.CsrfViewMiddleware',
     'django.middleware.cache.UpdateCacheMiddleware',