Permalink
Browse files

set skrill:status_report to default STATUS_URL

  • Loading branch information...
1 parent 2c57a14 commit 7fda44943cf66f49117dab665bf8ee11ee495204 @Akuryou Akuryou committed Dec 6, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 skrill/settings.py
View
@@ -2,6 +2,11 @@
import hashlib
from django.conf import settings
+from django.core.urlresolvers import reverse
+from django.utils.functional import lazy
+
+
+reverse_lazy = lazy(reverse, unicode)
# settings that normaly need no change
API_URL = getattr(settings, "SKRILL_API_URL", "https://www.moneybookers.com/app/payment.pl")
@@ -21,7 +26,7 @@ def get_secret_word_as_md5():
RETURN_URL = getattr(settings, "SKRILL_RETURN_URL", None)
RETURN_URL_TEXT = getattr(settings, "SKRILL_RETURN_URL_TEXT", None)
CANCEL_URL = getattr(settings, "SKRILL_CANCEL_URL", None)
-STATUS_URL = getattr(settings, "SKRILL_STATUS_URL", None)
+STATUS_URL = getattr(settings, "SKRILL_STATUS_URL", reverse_lazy('skrill:status_report'))
STATUS_URL2 = getattr(settings, "SKRILL_STATUS_URL2", None)
NEW_WINDOW_REDIRECT = getattr(settings, "SKRILL_NEW_WINDOW_REDIRECT", False)
LANGUAGE = getattr(settings, "SKRILL_LANGUAGE", settings.LANGUAGES[0][0].upper())

0 comments on commit 7fda449

Please sign in to comment.