Skip to content

Commit dd5169f

Browse files
committed
[IMP] estate: renamed check constraint variables
1 parent 2d8b90a commit dd5169f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

estate/models/estate_property.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,12 @@ def action_set_cancelled(self) -> bool:
9595
return True
9696

9797
# Constraints
98-
_expected_price_strict_positive = models.Constraint(
98+
_check_expected_price_strict_positive = models.Constraint(
9999
"CHECK(expected_price > 0)",
100100
"A property's expected price must be strictly greater than 0.",
101101
)
102102

103-
_selling_price_positive = models.Constraint(
103+
_check_selling_price_positive = models.Constraint(
104104
"CHECK(selling_price >= 0)",
105105
"A property's selling price must be equal to or greater than 0.",
106106
)

estate/models/estate_property_offer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def action_refuse(self) -> bool:
7373
return True
7474

7575
# Constraints
76-
_price_strict_positive = models.Constraint(
76+
_check_price_strict_positive = models.Constraint(
7777
"CHECK(price > 0)",
7878
"An offer's price must be strictly greater than 0.",
7979
)

0 commit comments

Comments
 (0)