add test case

This commit is contained in:
Kenneth SOARES
2025-09-30 17:20:47 +02:00
parent 0fef2e0071
commit 1b00998144
2 changed files with 37 additions and 0 deletions

View File

@@ -1402,5 +1402,9 @@ class InvoiceCall(models.Model):
verbose_name = _("Invoice call")
verbose_name_plural = _("Invoice calls")
def save(self, *args, **kwargs):
self.month = self._meta.get_field("month").to_python(self.month)
super().save(*args, **kwargs)
def __str__(self):
return f"invoice call of {self.month} made by {self.club}"