mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-01 19:10:12 +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):
|
class SearchFilterForm(forms.Form):
|
||||||
def __init__(self, search_field, *args, **kwargs):
|
def __init__(self, search_field, *args, **kwargs):
|
||||||
super().__init__(*args, **kwargs)
|
super(self, SearchFilterForm).__init__(*args, **kwargs)
|
||||||
self.fields[search_field] = forms.CharField()
|
self.fields[search_field] = forms.CharField()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user