]> git.parisson.com Git - diggersdigest.git/commitdiff
ipn tweaks
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Fri, 25 Sep 2015 09:49:50 +0000 (11:49 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Fri, 25 Sep 2015 09:49:50 +0000 (11:49 +0200)
app/diggersdigest/settings.py
app/records/models.py
docker-compose.yml

index c77c80d10a183e575248700246c4d53fde4e8b00..3baa9617c7dd37d80dd5fe30e361bd1c2329f8b4 100644 (file)
@@ -75,7 +75,7 @@ EXTRA_MODEL_FIELDS = (
         "cartridge.shop.models.Order.callback_uuid",
         "django.db.models.CharField",
         (),
-        {"blank" : False, "max_length" : 36},
+        {"blank" : False, "max_length" : 36, 'default': 0},
      ),
      # ...
      #     # Example of adding a field to *all* of Mezzanine's content types:
@@ -363,10 +363,10 @@ INSTALLED_APPS = (
     "mezzanine.galleries",
     "mezzanine.twitter",
     "mezzanine.accounts",
-    "mezzanine.mobile",
+    "mezzanine.mobile",
     "records",
-    "payments.multipayments",
     'paypal.standard.ipn',
+    "payments.multipayments",
 )
 
 # List of processors used by RequestContext to populate the context.
index 13b3770387aca24eaf70b48ea07fe89f11d5aab0..8ca7ea0b1b20a68279c9e415984e342f7915e555 100644 (file)
@@ -308,9 +308,9 @@ def payment_complete(sender, **kwargs):
         try:
             cart = Cart.objects.get(id=cart_pk)
             try:
-                #order = Order.objects.get(
-                #    transaction_id=ipn_obj.invoice)
-                order = Order.objects.get(key=s_key)
+                order = Order.objects.get(
+                    transaction_id=ipn_obj.invoice)
+                #order = Order.objects.get(key=s_key)
                 for field in order.session_fields:
                     if field in session:
                         del session[field]
index 76e770ce1d5e05533f884ba674d9dc98d6369ae7..8253149cf579afe2a7d0cd30ccb62e9b5501a504 100644 (file)
@@ -20,6 +20,7 @@ app:
   command: /bin/sh app/deploy/start_app.sh
   volumes:
     - ./app/:/opt/app/app
+    - ./src/:/opt/src
   volumes_from:
     - media
   ports: