From 9fe4cc5102343dc5d90060a3b09ae4088a0872d3 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 d8d29a12..744e3079 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"))