Permalink
Browse files

add in currencies

  • Loading branch information...
1 parent 2836134 commit 85719093c04775764bc97a3d1961c35b5638a000 @andymckay andymckay committed Apr 4, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 mkt/developers/views.py
View
@@ -238,7 +238,8 @@ def paypal_setup(request, addon_id, addon, webapp):
paypal_form = PaypalSetupForm(request.POST or None)
currency_form = CurrencyForm(request.POST or None,
- initial={'currencies': addon.premium.currencies})
+ initial={'currencies': addon.premium.currencies
+ if addon.premium else {}})
context = {'addon': addon, 'paypal_form': paypal_form,
'currency_form': currency_form}

0 comments on commit 8571909

Please sign in to comment.