Skip to content

AttributeError: 'list' object has no attribute 'values_list' #2836

@sentry

Description

@sentry

Sentry Issue: STUDIO-E2W

AttributeError: 'list' object has no attribute 'values_list'
(9 additional frame(s) were not displayed)
...
  File "rest_framework/views.py", line 455, in handle_exception
    self.raise_uncaught_exception(exc)
  File "rest_framework/views.py", line 492, in dispatch
    response = handler(request, *args, **kwargs)
  File "rest_framework/decorators.py", line 54, in handler
    return func(*args, **kwargs)
  File "contentcuration/views/nodes.py", line 122, in get_node_diff
    request.user.can_view_nodes([updated, original])
  File "contentcuration/models.py", line 227, in can_view_nodes
    root_nodes_all = ContentNode.objects.filter(parent=None, tree_id__in=nodes.values_list("tree_id", flat=True).distinct()).distinct()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions