remember namespace prefixes on reverse() calls
This commit is contained in:
parent
7932302e42
commit
dd292c22c7
|
@ -86,10 +86,10 @@ class Order(CreatedUpdatedModel):
|
||||||
)['sum']
|
)['sum']
|
||||||
|
|
||||||
def get_epay_accept_url(self, request):
|
def get_epay_accept_url(self, request):
|
||||||
return 'https://' + request.get_host() + str(reverse_lazy('epay_thanks', kwargs={'pk': self.pk}))
|
return 'https://' + request.get_host() + str(reverse_lazy('shop:epay_thanks', kwargs={'pk': self.pk}))
|
||||||
|
|
||||||
def get_epay_cancel_url(self, request):
|
def get_epay_cancel_url(self, request):
|
||||||
return 'https://' + request.get_host() + str(reverse_lazy('order_detail', kwargs={'pk': self.pk}))
|
return 'https://' + request.get_host() + str(reverse_lazy('shop:order_detail', kwargs={'pk': self.pk}))
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def description(self):
|
def description(self):
|
||||||
|
|
Loading…
Reference in a new issue