remember namespace prefixes on reverse() calls

This commit is contained in:
Thomas Steen Rasmussen 2016-05-17 07:15:10 +02:00
parent 7932302e42
commit dd292c22c7

View file

@ -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):