File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,10 @@ def get_form_kwargs(self):
62
62
kwargs .update ({
63
63
'data' : self .request .GET ,
64
64
})
65
- kwargs .update ({'searchqueryset' : self .get_queryset ()})
65
+ kwargs .update ({
66
+ 'searchqueryset' : self .get_queryset (),
67
+ 'load_all' : self .load_all ,
68
+ })
66
69
return kwargs
67
70
68
71
def form_invalid (self , form ):
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ def test_get_form_kwargs(self):
28
28
self .assertEqual (form_kwargs .get ('data' ).get ('q' ), self .query )
29
29
self .assertEqual (form_kwargs .get ('initial' ), {})
30
30
self .assertTrue ('searchqueryset' in form_kwargs )
31
+ self .assertTrue ('load_all' in form_kwargs )
31
32
32
33
def test_search_view_response (self ):
33
34
"""Test the generic SearchView response."""
You can’t perform that action at this time.
0 commit comments