From 9fed57de20c4179dac160ec5123d9116aca36d9b Mon Sep 17 00:00:00 2001 From: Kenneth SOARES Date: Sat, 14 Jun 2025 16:57:01 +0200 Subject: [PATCH] rename is_validated field --- counter/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/counter/models.py b/counter/models.py index 92288642..f7c36426 100644 --- a/counter/models.py +++ b/counter/models.py @@ -1378,7 +1378,7 @@ class MonthField(models.CharField): if value is None: return value try: - year, month = map(int, value.split("-")) + year, month = value.split("-") return date(year, month, 1) except (ValueError, TypeError): return value @@ -1388,7 +1388,7 @@ class MonthField(models.CharField): return value if isinstance(value, str): try: - year, month = map(int, value.split("-")) + year, month = value.split("-") return date(year, month, 1) except ValueError: pass @@ -1407,7 +1407,7 @@ class MonthField(models.CharField): class InvoiceCall(models.Model): - validated = models.BooleanField(verbose_name=_("is validated")) + is_validated = models.BooleanField(verbose_name=_("is validated")) club = models.ForeignKey(Club, on_delete=models.CASCADE) month = MonthField(verbose_name=_("invoice date"))