#NEWLINE# def __init__( self , * args , **kwargs ) : #NEWLINE# #INDENT# super ( BaseForm , self ) . __init__ ( * args , ** kwargs ) #NEWLINE# def ttl_helper( o ) : #NEWLINE# #INDENT# if ( not o ) : #NEWLINE# #INDENT# return 'default (SOA minimum)' #NEWLINE# #UNINDENT# if ( hasattr ( o , 'domain' ) and o . domain and o . domain . soa ) : #NEWLINE# #INDENT# return '{0} (click to override)' . format ( o . domain . soa . minimum ) #NEWLINE# #UNINDENT# if ( hasattr ( o , 'reverse_domain' ) and o . reverse_domain and o . reverse_domain . soa ) : #NEWLINE# #INDENT# return '{0} (click to override)' . format ( o . reverse_domain . soa . minimum ) #NEWLINE# #UNINDENT# return 'default (SOA minimum)' #NEWLINE# #UNINDENT# self . fields [ 'ttl' ] . widget = forms . TextInput ( attrs = { #NEWLINE# #INDENT# 'placeholder' : ttl_helper ( self . instance ) , #NEWLINE# #UNINDENT# } )