mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-30 18:09:59 +03:00
added required arguments to super() for Django bakwards compatibility
This commit is contained in:
parent
0a25bb9117
commit
a5292b2ce9
|
@ -27,7 +27,7 @@ from rest_framework.settings import api_settings
|
|||
|
||||
class SearchFilterForm(forms.Form):
|
||||
def __init__(self, search_field, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
super(self, SearchFilterForm).__init__(*args, **kwargs)
|
||||
self.fields[search_field] = forms.CharField()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user