mirror of
https://github.com/ae-utbm/sith.git
synced 2025-06-27 05:35:16 +00:00
rename is_validated field
This commit is contained in:
parent
1f77f154ba
commit
9fe4cc5102
@ -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"))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user