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

Add tags/roles and tags/collections endpoints #1931

Prev Previous commit
Next Next commit
fix gettext problem
Issue: AAH-2761
  • Loading branch information
jerabekjiri committed Nov 1, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 98a389bc00c7777bd5ca36dcd25c673a9e0f289d
2 changes: 1 addition & 1 deletion galaxy_ng/app/api/ui/viewsets/tags.py
Original file line number Diff line number Diff line change
@@ -116,7 +116,7 @@ def _filter_queryset(self, queryset, request):
sort_field = sort.replace("-", "")
queryset = sorted(queryset, key=lambda x: x[sort_field], reverse=reverse)
elif sort is not None:
raise serializers.ValidationError(_(f"Invalid Sort: '{sort}'"))
raise serializers.ValidationError(_("Invalid Sort: '{}'").format(sort))

return queryset