Skip to content

Commit

Permalink
Update target_2031 field to allow decimal values
Browse files Browse the repository at this point in the history
  • Loading branch information
smdsgn committed Nov 15, 2024
1 parent f3a433d commit 0251826
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion project/models/project_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,10 @@ def get_public_key(self) -> str:
blank=True,
null=True,
)
target_2031 = models.IntegerField(
target_2031 = models.DecimalField(
"Objectif de réduction à 2031 (en %)",
max_digits=4,
decimal_places=1,
validators=[MinValueValidator(0), MaxValueValidator(100)],
default=50,
help_text=(
Expand Down

0 comments on commit 0251826

Please sign in to comment.