Skip to content

Commit

Permalink
fix: Added comments explaining custom queryset
Browse files Browse the repository at this point in the history
  • Loading branch information
josebui committed Nov 9, 2023
1 parent 1c8d33e commit c0b4d9b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions terraso_backend/apps/graphql/schema/visualization_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ class Meta:

@classmethod
def get_queryset(cls, queryset, info):
# Only filter for user memberships if the field is not visualizationConfigs
# This is because the user can be requesting a visualizations from a parent
# node, that should be handling the filtering
if info.field_name != "visualizationConfigs":
return queryset

Expand Down

0 comments on commit c0b4d9b

Please sign in to comment.