Skip to content

Commit

Permalink
Fixed #38
Browse files Browse the repository at this point in the history
  • Loading branch information
GigiusB authored Mar 15, 2024
1 parent d4f53d5 commit 676765e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 18 deletions.
3 changes: 0 additions & 3 deletions src/adminfilters/multiselect.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ def __init__(self, field, request, params, model, model_admin, field_path):
self.lookup_kwarg = "%s_filter" % field_path
self.filter_statement = "%s" % field_path


# self.lookup_val = params.pop(self.lookup_kwarg, None)

self._params = params
self.lookup_val = self.get_parameters(self.lookup_kwarg, pop=True)

Expand Down
2 changes: 1 addition & 1 deletion tests/functional/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,4 @@ def fx(name):
errors = [err for err in site.get_errors() if err and 'favicon' not in err['message']]
assert len(errors) == 0, "\n".join(["{message}".format(**err) for err in errors])
return site
return fx
return fx
14 changes: 0 additions & 14 deletions tests/functional/test_f_unionlistfilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,6 @@
pytestmark = pytest.mark.selenium



#
# def get_linked_ac(driver):
# elements = [
# get_elements(driver, cssid=cssid)
# for cssid in [
# 'favourite_city__region__country__exact_favourite_city__region__country__isnull',
# 'favourite_city__region__exact_favourite_city__region__isnull',
# 'favourite_city__exact_favourite_city__isnull',
# ]
# ]
# return elements


@pytest.mark.selenium
def test_unionlist_filter(admin_factory):
site = admin_factory('UnionFieldListFilters')
Expand Down

0 comments on commit 676765e

Please sign in to comment.