re-add get_absolute_url method for order
This commit is contained in:
parent
dd292c22c7
commit
089185f38c
|
@ -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'
|
||||||
|
|
Loading…
Reference in a new issue