Created
November 21, 2011 23:14
-
-
Save andymckay/1384312 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/apps/addons/views.py b/apps/addons/views.py | |
index 79d1056..7e82a78 100644 | |
--- a/apps/addons/views.py | |
+++ b/apps/addons/views.py | |
@@ -561,10 +561,9 @@ def purchase_complete(request, addon, status): | |
log.debug('Paypal returned: %s for paykey: %s' | |
% (result, con.paykey[:10])) | |
if result == 'COMPLETED': | |
- # Markup the contribution suitably | |
- con.type = amo.CONTRIB_PURCHASE | |
- con.uuid = None | |
- con.save() | |
+ status = 'complete' | |
+ else: | |
+ status = 'error' | |
response = jingo.render(request, 'addons/paypal_result.html', | |
{'addon': addon, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment