#NEWLINE# def get_queryset( self , request , username , local_site_name = None , * args , **kwargs ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# local_site = self . _get_local_site ( local_site_name ) #NEWLINE# if local_site : #NEWLINE# #INDENT# user = local_site . users . get ( username = username ) #NEWLINE# profile = user . get_profile ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# profile = Profile . objects . get ( user__username = username ) #NEWLINE# #UNINDENT# q = self . watched_resource . get_queryset ( args , * args , local_site_name = local_site_name , ** kwargs ) #NEWLINE# q = q . filter ( starred_by = profile ) #NEWLINE# return q #NEWLINE# #UNINDENT# except Profile . DoesNotExist : #NEWLINE# #INDENT# return self . watched_resource . model . objects . none ( )