mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 03:49:24 +00:00
Improve product display
This commit is contained in:
@ -113,7 +113,7 @@ class Product(models.Model):
|
||||
return False
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
return "%s (%s)" % (self.name, self.code)
|
||||
|
||||
def get_absolute_url(self):
|
||||
return reverse('counter:product_list')
|
||||
|
Reference in New Issue
Block a user