mirror of
https://github.com/evennia/evennia.git
synced 2026-04-03 22:47:16 +02:00
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")
|
||||
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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue