#NEWLINE# def check_TLD_condition( self ) : #NEWLINE# #INDENT# domain = Domain . objects . filter ( name = self . fqdn ) #NEWLINE# if ( not self ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if ( ( self . label == '' ) and ( domain [ 0 ] == self . domain ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise ValidationError ( 'You cannot create an record that points to the top level of another domain.' )