fix trailing commas, rename to epay.py

This commit is contained in:
Thomas Steen Rasmussen 2016-05-17 07:10:18 +02:00
parent e0c3be498b
commit 67cbe33e3a
2 changed files with 3 additions and 3 deletions

View file

@ -10,8 +10,8 @@ def calculate_epay_hash(order, request):
description=order.description,
amount=order.amount*100,
order_id=order.pk,
accept_url = order.get_epay_accept_url(request)
cancel_url = order.get_epay_cancel_url(request)
accept_url = order.get_epay_accept_url(request),
cancel_url = order.get_epay_cancel_url(request),
md5_secret=settings.EPAY_MD5_SECRET,
)
epay_hash = hashlib.md5(hashstring).hexdigest()

View file

@ -23,7 +23,7 @@ from shop.models import (
EpayCallback,
)
from .forms import AddToOrderForm
from .utils import calculate_epay_hash
from .epay import calculate_epay_hash
class EnsureUserOwnsOrderMixin(SingleObjectMixin):