Permalink
Browse files

add DEFAULT_CURRENCY to settings

  • Loading branch information...
1 parent f8ebdab commit f4abdc219816095269d9537709b0723245570b99 @Akuryou Akuryou committed Dec 6, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 skrill/models.py
  2. +1 −1 skrill/settings.py
View
@@ -97,7 +97,7 @@ class PaymentRequest(models.Model):
# payment details
amount = models.DecimalField("Amount", max_digits=18, decimal_places=2,
help_text="The total amount payable.")
- currency = models.CharField("Currency", max_length=3, choices=ISO4217,
+ currency = models.CharField("Currency", max_length=3, choices=ISO4217, default=DEFAULT_CURRENCY,
help_text="3-letter code of the currency of the amount according to ISO 4217")
amount2_description = models.CharField("Amount 2 description", max_length=240, blank=True, null=True,
help_text="Merchant may specify a detailed calculation for the total amount payable. Please note that Skrill (Moneybookers) does not check the validity of these data - they are only displayed in the 'More information' section in the header of the gateway.")
View
@@ -36,7 +36,7 @@ def get_secret_word_as_md5():
CONFIRMATION_NOTE = getattr(settings, "SKRILL_CONFIRMATION_NOTE", None)
LOGO_URL = getattr(settings, "SKRILL_LOGO_URL", None)
DEFAULT_URL_TARGET = getattr(settings, "SKRILL_DEFAULT_URL_TARGET", 1)
-
+DEFAULT_CURRENCY = getattr(settings, "SKRILL_DEFAULT_CURRENCY", None)
URL_TARGET_CHOICES = (
(1,"_top"),

0 comments on commit f4abdc2

Please sign in to comment.