

def get_queryset(self):
    organisation = Organisation.objects.order_by('?').first()
    return Membership.objects.filter(organisation=self)

dataset/ETHPy150Open ekonstantinidis/django-rest-framework-docs/tests/views.py OrganisationMembersView.get_queryset/VarMisuse@34/42 `organisation`->`self`