Filterfehler: Suchvorgänge dürfen nicht mehr als eine Ebene tief sein

Wenn man sich umschaut, was andere tun, sollte das funktionieren, aber ich kann nicht sagen:

Suchvorgänge sind nicht mehr als eine Ebene tief im Feld "Fotos" zulässig.

Hier ist der Code, den ich habe. Ich habe ein paar kleine Variationen bei der Einrichtung ausprobiert, aber ich hatte kein Glück.

class CollectionResource(ModelResource):
    photos = fields.ToManyField('photoproject.apps.kit.api.PhotoResource', 'photo_set', null=True, full=True)

    class Meta:
        authorization = Authorization()
        resource_name = 'collection'

        queryset = Collection.objects.all()

        filtering = {
            'name': ['exact'],
            'photos': ALL
        }

class PhotoResource(ModelResource):
    collection = fields.ToOneField(CollectionResource, 'collection')

    class Meta:
        authorization = Authorization()
        resource_name = 'photo'

        queryset = Photo.objects.all()

        filtering = {
            'id': ALL_WITH_RELATIONS
        }

Und was ich versuche abzufragen, ist:

/api/v1/collection/?photos__id=2

Antworten auf die Frage(1)

Ihre Antwort auf die Frage