#NEWLINE# def formfield_for_foreignkey( self , db_field , request , **kwargs ) : #NEWLINE# #INDENT# if ( db_field . name == 'car' ) : #NEWLINE# #INDENT# kwargs [ 'queryset' ] = models . Car . objects . filter ( owner = request . user ) #NEWLINE# return db_field . formfield ( ** kwargs ) #NEWLINE# #UNINDENT# return super ( CarTireAdmin , self ) . formfield_for_foreignkey ( db_field , request , ** kwargs )