Skip to content

Commit

Permalink
Fixed production handling on get_action.
Browse files Browse the repository at this point in the history
  • Loading branch information
zyegfryed committed Nov 23, 2010
1 parent 4ff1e63 commit 89e4ca5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion django_ogone/ogone.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,10 @@ def get_action(production=None, settings=ogone_settings):
assert isinstance(PROD_URL, unicode) or isinstance(PROD_URL, str)
assert isinstance(TEST_URL, unicode) or isinstance(TEST_URL, str)

if production or settings.PRODUCTION:
if production is None:
production = settings.PRODUCTION

if production:
log.debug('Returning production URL: %s', PROD_URL)
return PROD_URL
else:
Expand Down

0 comments on commit 89e4ca5

Please sign in to comment.