re-add get_absolute_url method for order

This commit is contained in:
Thomas Steen Rasmussen 2016-05-17 07:21:22 +02:00
parent dd292c22c7
commit 089185f38c

View file

@ -95,6 +95,9 @@ class Order(CreatedUpdatedModel):
def description(self): def description(self):
return "BornHack 2016 order #%s" % self.pk return "BornHack 2016 order #%s" % self.pk
def get_absolute_url(self):
return str(reverse_lazy('shop:order_detail', kwargs={'pk': self.pk}))
class ProductCategory(CreatedUpdatedModel, UUIDModel): class ProductCategory(CreatedUpdatedModel, UUIDModel):
class Meta: class Meta:
verbose_name = 'Product category' verbose_name = 'Product category'