Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Sep 25, 2024
1 parent c12e3a5 commit 40284da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codeforlife/user/filters/klass.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class ClassFilterSet(FilterSet):
id_or_name = filters.CharFilter(method="id_or_name__method")

def id_or_name__method(self, queryset: QuerySet[Class], _: str, value: str):
"""Get classes where the id or the contain a substring."""
"""Get classes where the id or the name contain a substring."""
return queryset.filter(
Q(access_code__icontains=value) | Q(name__icontains=value)
)
Expand Down

0 comments on commit 40284da

Please sign in to comment.