Unverified Commit 00550d51 authored by Florent Chehab's avatar Florent Chehab
Browse files

style: missed previous reformat

parent d6935935
......@@ -85,12 +85,16 @@ class CharInFilter(filters.BaseInFilter, filters.CharFilter):
class ExchangeFeedbackFilter(filters.FilterSet):
exchange__student_major_in = CharInFilter(field_name='exchange__student_major', lookup_expr='in')
exchange__student_minor_in = CharInFilter(field_name='exchange__student_minor', lookup_expr='in')
exchange__student_major_in = CharInFilter(
field_name="exchange__student_major", lookup_expr="in"
)
exchange__student_minor_in = CharInFilter(
field_name="exchange__student_minor", lookup_expr="in"
)
class Meta:
model = ExchangeFeedback
fields = ['exchange__student_major_in', 'exchange__student_minor_in']
fields = ["exchange__student_major_in", "exchange__student_minor_in"]
class ExchangeFeedbackFilterBackend(DjangoFilterBackend):
......@@ -116,10 +120,7 @@ class ExchangeFeedbackViewSet(EssentialModuleViewSet):
)
serializer_class = ExchangeFeedbackSerializer
end_point_route = "exchangeFeedbacks"
filterset_fields = (
"university",
"untouched",
)
filter_backends = (filters.DjangoFilterBackend, ExchangeFeedbackFilterBackend,)
filterset_fields = ("university", "untouched")
filter_backends = (filters.DjangoFilterBackend, ExchangeFeedbackFilterBackend)
required_filterset_fields = ("university",)
pagination_class = CustomPagination
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment