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

FieldError: Cannot resolve keyword 'lang_name' into field. Choices are: channel_language, channels, content_l... #4017

Closed
sentry-io bot opened this issue Apr 11, 2023 · 0 comments · Fixed by #4018
Assignees
Labels
P0 - critical Priority: Release blocker or regression

Comments

@sentry-io
Copy link

sentry-io bot commented Apr 11, 2023

Sentry Issue: STUDIO-G6G

FieldError: Cannot resolve keyword 'lang_name' into field. Choices are: channel_language, channels, content_language, contentnode, file, files, id, lang_code, lang_direction, lang_subcode, native_name, public_channels, readable_name
  File "django/db/models/sql/query.py", line 1955, in add_fields
    join_info = self.setup_joins(name.split(LOOKUP_SEP), opts, alias, allow_many=allow_m2m)
  File "django/db/models/sql/query.py", line 1648, in setup_joins
    path, final_field, targets, rest = self.names_to_path(
  File "django/db/models/sql/query.py", line 1562, in names_to_path
    raise FieldError("Cannot resolve keyword '%s' into field. "

FieldError: Cannot resolve keyword 'lang_name' into field. Choices are: channel_language, channels, content_language, contentnode, file, files, id, lang_code, lang_direction, lang_subcode, native_name, public_channels, readable_name
(18 additional frame(s) were not displayed)
...
  File "kolibri_public/views.py", line 65, in wrapper_func
    response = some_func(*args, **kwargs)
  File "contentcuration/viewsets/base.py", line 666, in list
    return self.get_paginated_response(self.serialize(queryset))
  File "kolibri_public/views.py", line 529, in get_paginated_response
    ("labels", get_available_metadata_labels(self.queryset)),
  File "kolibri_public/search.py", line 113, in get_available_metadata_labels
    output["languages"] = _get_available_languages(base_queryset)
  File "kolibri_public/search.py", line 65, in _get_available_languages
    langs = Language.objects.filter(
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P0 - critical Priority: Release blocker or regression
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants