Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion archipy/models/dtos/range_dtos.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class RangeDTO(BaseDTO):
to: Decimal | None = None

@field_validator("from_", "to", mode="before")
def convert_to(self, value: Decimal | str | None) -> Decimal | None:
def convert_to(cls, value: Decimal | str | None) -> Decimal | None:
"""Convert string values to Decimal type.

Args:
Expand Down