Skip to content

Commit

Permalink
Fix empty filter field after submission. Fixes #109
Browse files Browse the repository at this point in the history
  • Loading branch information
bartTC committed Nov 23, 2024
1 parent b5eb344 commit bbd1297
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*.pyc
poetry.lock
.coverage
coverage_report
django_dynamic_raw_id.egg-info
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Changelog

## WIP
## v4.3 (2024-11-23)

- Django 5.1 compatibility and tests.
- Empty filter form field after submission. https://github.com/lincolnloop/django-dynamic-raw-id/issues/109

## v4.2 (2024-06-18)

Expand Down
2 changes: 1 addition & 1 deletion dynamic_raw_id/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def get_form(
admin_site=admin_site,
rel=rel,
field_name=self.field_path,
data=self.used_parameters,
data={self.field_path: request.GET.get(self.field_path, "")},
)

def queryset(
Expand Down

0 comments on commit bbd1297

Please sign in to comment.