<s> from dal import autocomplete <EOL> from django . conf . urls import url <EOL> from . models import TestModel <EOL> class LinkedDataView ( autocomplete . Select2QuerySetView ) : <EOL> def get_queryset ( self ) : <EOL> qs = super ( LinkedDataView , self ) . get_queryset ( ) <EOL> owner = self . forwarded . get ( '<STR_LIT>' , None ) <EOL> if owner : <EOL> qs = qs . filter ( owner_id = owner ) <EOL> return qs <EOL> urlpatterns = [ <EOL> url ( <EOL> '<STR_LIT>' , <EOL> LinkedDataView . as_view ( model = TestModel ) , <EOL> name = '<STR_LIT>' <EOL> ) , <EOL> ] </s>
