#NEWLINE# def get_initial_data( self ) : #NEWLINE# #INDENT# '\n        Return a dictionary specifying the defaults for this form. This dictionary can be used to\n        inject the initial values for an Angular controller using the directive:\n        ``ng-init={{ thisform.get_initial_data|js|safe }}``.\n        ' #NEWLINE# data = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# ng_models = ( ( hasattr ( self , 'Meta' ) and getattr ( self . Meta , 'ng_models' , [ ] ) ) or [ ] ) #NEWLINE# for ( name , field ) in self . fields . items ( ) : #NEWLINE# #INDENT# if ( ( 'ng-model' in self . ng_directives ) or ( name in ng_models ) ) : #NEWLINE# #INDENT# data [ name ] = ( self . initial . get ( name ) if self . initial else field . initial ) #NEWLINE# #UNINDENT# #UNINDENT# return data