Skip to content

Commit

Permalink
Add filter field to CompanyInterestFilterSet
Browse files Browse the repository at this point in the history
  • Loading branch information
Arash Farzaneh Taleghani committed Mar 14, 2023
1 parent 616dcc3 commit 104f51b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lego/apps/companies/filters.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from django_filters import BooleanFilter, FilterSet
from django_filters import BooleanFilter, CharFilter, FilterSet

from lego.apps.companies.models import CompanyInterest, Semester

Expand All @@ -12,6 +12,8 @@ class Meta:


class CompanyInterestFilterSet(FilterSet):
events = CharFilter(lookup_expr="icontains")

class Meta:
model = CompanyInterest
fields = ("semesters",)
fields = ("semesters", "events")

0 comments on commit 104f51b

Please sign in to comment.