diff --git a/shop/models.py b/shop/models.py index 6876c059..4dea2c46 100644 --- a/shop/models.py +++ b/shop/models.py @@ -84,6 +84,9 @@ class Order(CreatedUpdatedModel): ) )['sum'] + def get_absolute_url(self): + return reverse('order_detail', kwargs={'pk': self.pk}) + class ProductCategory(CreatedUpdatedModel, UUIDModel): class Meta: