remember namespace prefix for reverse() lookups
This commit is contained in:
parent
2e079732cf
commit
5a5efbe69a
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue