add missing get_absolute_url() for Order model

This commit is contained in:
Thomas Steen Rasmussen 2016-05-16 16:54:11 +02:00
parent 3a80691e2c
commit 5be92b46ff

View file

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