feat: added lots of tests

This commit is contained in:
2024-05-13 12:33:09 +02:00
parent ad017382a9
commit 05caeb9607
8 changed files with 113 additions and 11 deletions
+4
View File
@@ -34,6 +34,10 @@ class Product(models.Model):
def __str__(self):
return self.name
@property
def price(self):
return self.prices.last()
class Meta:
verbose_name = _("Producto")
verbose_name_plural = _("Productos")