Skip to content

Commit

Permalink
Merge pull request breatheco-de#1088 from gustavomm19/filter-many-cat…
Browse files Browse the repository at this point in the history
…egories

change category filter from iexact to in
  • Loading branch information
tommygonzaleza authored Sep 25, 2023
2 parents 4ec4916 + 3b31289 commit 8e97511
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions breathecode/payments/migrations/0035_merge_20230922_2320.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Generated by Django 3.2.21 on 2023-09-22 23:20

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('payments', '0033_serviceitemfeature_title'),
('payments', '0034_cohortset_cohorts'),
]

operations = []
2 changes: 1 addition & 1 deletion breathecode/registry/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ def get(self, request, asset_slug=None):

if 'category' in self.request.GET:
param = self.request.GET.get('category')
lookup['category__slug__iexact'] = param
lookup['category__slug__in'] = [p for p in param.split(',')]

if 'test_status' in self.request.GET:
param = self.request.GET.get('test_status')
Expand Down

0 comments on commit 8e97511

Please sign in to comment.