Skip to content

Commit

Permalink
Record known bug in implementation of get_queryset
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvkb committed May 27, 2024
1 parent c808389 commit 7983b53
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/api/admin/media_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,9 @@ def moderate_view(self, request, object_id):
# Overrides #
#############

# TODO: This construct breaks down if a decision is associated with
# a media item that does not have any reports. Such an item cannot
# be reached at the URL ``admin/api/{media_type}/{id}/change/``.
def get_queryset(self, request):
qs = super().get_queryset(request)
# Return all available image if this is for an autocomplete request
Expand Down

0 comments on commit 7983b53

Please sign in to comment.