Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
MadsNyl committed Nov 11, 2024
1 parent 1c66116 commit 3fb533b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app/feedback/filters/feedback.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@


class FeedbackFilter(filters.FilterSet):

feedback_type = filters.CharFilter(
method="filter_feedback_type", label="List of feedback type"
)
Expand All @@ -26,13 +25,10 @@ class FeedbackFilter(filters.FilterSet):
)

def filter_feedback_type(self, queryset, _name, feedback_type):

if feedback_type == "Idea":
return queryset.filter(Q(instance_of=Idea))

elif feedback_type == "Bug":
return queryset.filter(Q(instance_of=Bug))

else:
return queryset

Expand Down

0 comments on commit 3fb533b

Please sign in to comment.