remember namespace prefix for reverse() lookups

This commit is contained in:
Thomas Steen Rasmussen 2016-05-16 17:23:53 +02:00
parent 2e079732cf
commit 5a5efbe69a

View file

@ -86,7 +86,7 @@ class Order(CreatedUpdatedModel):
)['sum'] )['sum']
def get_absolute_url(self): def get_absolute_url(self):
return reverse_lazy('order_detail', kwargs={'pk': self.pk}) return reverse_lazy('shop:order_detail', kwargs={'pk': self.pk})
class ProductCategory(CreatedUpdatedModel, UUIDModel): class ProductCategory(CreatedUpdatedModel, UUIDModel):