Convert filter_name method to staticmethod
This commit is contained in:
parent
d441739c9a
commit
bf694e5d93
1 changed files with 2 additions and 1 deletions
|
|
@ -62,7 +62,8 @@ class BaseTypeclassFilterSet(FilterSet):
|
||||||
permission = PermissionFilter(lookup_expr="iexact")
|
permission = PermissionFilter(lookup_expr="iexact")
|
||||||
name = CharFilter(lookup_expr="iexact", method="filter_name", field_name="db_key")
|
name = CharFilter(lookup_expr="iexact", method="filter_name", field_name="db_key")
|
||||||
|
|
||||||
def filter_name(self, queryset, name, value):
|
@staticmethod
|
||||||
|
def filter_name(queryset, name, value):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue