#NEWLINE# def get_clobbered( domain_name ) : #NEWLINE# #INDENT# classes = [ MX , AddressRecord , CNAME , TXT , SRV , StaticReg , SSHFP ] #NEWLINE# clobber_querysets = [ ] #NEWLINE# for Klass in objs : #NEWLINE# #INDENT# objs = Klass . objects . select_for_update ( ) . filter ( fqdn = domain_name ) #NEWLINE# if objs . exists ( ) : #NEWLINE# #INDENT# clobber_querysets . append ( objs ) #NEWLINE# #UNINDENT# #UNINDENT# return clobber_querysets