add missing get_absolute_url() for Order model
This commit is contained in:
parent
3a80691e2c
commit
5be92b46ff
|
@ -84,6 +84,9 @@ class Order(CreatedUpdatedModel):
|
||||||
)
|
)
|
||||||
)['sum']
|
)['sum']
|
||||||
|
|
||||||
|
def get_absolute_url(self):
|
||||||
|
return reverse('order_detail', kwargs={'pk': self.pk})
|
||||||
|
|
||||||
|
|
||||||
class ProductCategory(CreatedUpdatedModel, UUIDModel):
|
class ProductCategory(CreatedUpdatedModel, UUIDModel):
|
||||||
class Meta:
|
class Meta:
|
||||||
|
|
Loading…
Reference in a new issue