From dd292c22c773dc5c9ef700265bd56a269e016c08 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Tue, 17 May 2016 07:15:10 +0200 Subject: [PATCH] remember namespace prefixes on reverse() calls --- shop/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shop/models.py b/shop/models.py index 93af9ea0..9cabc521 100644 --- a/shop/models.py +++ b/shop/models.py @@ -86,10 +86,10 @@ class Order(CreatedUpdatedModel): )['sum'] 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): - 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 def description(self):