Skip to content

Commit

Permalink
fix initial value in NumericRangeFilter form field (#124)
Browse files Browse the repository at this point in the history
fix initial value in NumericRangeFilter form field to show default_start value (default_gte) instead of default_end value (default_lte)
  • Loading branch information
gretapataki authored Jul 19, 2024
1 parent 9907c36 commit c972036
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rangefilter/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def _get_form_fields(self):
widget=forms.NumberInput(attrs={"placeholder": _("From")}),
required=False,
localize=True,
initial=self.default_lte,
initial=self.default_gte,
),
),
(
Expand Down

0 comments on commit c972036

Please sign in to comment.