farhan0581 / django-admin-autocomplete-filter

A simple Django app to render list filters in django admin using autocomplete widget.
GNU General Public License v3.0
351 stars 75 forks source link

Custom search viewset doesn't function as documented in Django >= 3.2 #64

Closed maddencs closed 3 years ago

maddencs commented 3 years ago

You can replicate the issue by setting Django==3.2 in requirements.txt and running the tests. The following exception gets raised:

TypeError: FoodsThatAreFavorites() received an invalid keyword 'model_admin'. as_view only accepts arguments that are already attributes of the class.
KaktusOnFire commented 2 years ago

I have the same problem: TypeError: CustomSearchView() received an invalid keyword 'model_admin'. as_view only accepts arguments that are already attributes of the class.

KaktusOnFire commented 2 years ago

@maddencs how did you resolved this problem?