Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input search bar #1520

Open
wants to merge 14 commits into
base: development
Choose a base branch
from

Conversation

avanegasp
Copy link
Contributor

Add all tests_academy_keyword_cluster file with lang, like and visibility values tests from cero.

@avanegasp
Copy link
Contributor Author

breathecode/registry/views.py Outdated Show resolved Hide resolved
@@ -1801,7 +1801,17 @@ def get(self, request, cluster_slug=None, academy_id=None):
if like is not None and like != "undefined" and like != "":
items = items.filter(Q(slug__icontains=slugify(like)) | Q(title__icontains=like))

items = items.filter(**lookup)
lang = request.GET.get("lang", None)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should look like this one:

if "lang" in request.GET:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants