#NEWLINE# def get_coverage_data( ) : #NEWLINE# #INDENT# '\n    Check which models are covered by linkcheck\n    This view assumes the key for link\n    ' #NEWLINE# all_model_list = [ ] #NEWLINE# for app in models . get_apps ( ) : #NEWLINE# #INDENT# model_list = models . get_models ( app ) #NEWLINE# for model in model_list : #NEWLINE# #INDENT# should_append = False #NEWLINE# if getattr ( model , 'get_absolute_url' , None ) : #NEWLINE# #INDENT# should_append = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# for field in model . _meta . fields : #NEWLINE# #INDENT# if is_interesting_field ( field ) : #NEWLINE# #INDENT# should_append = True #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# if should_append : #NEWLINE# #INDENT# all_model_list . append ( { #NEWLINE# #INDENT# 'name' : ( '%s.%s' % ( model . _meta . app_label , model . _meta . object_name ) ) , #NEWLINE# 'is_covered' : is_model_covered ( model ) , #NEWLINE# 'suggested_config' : get_suggested_linklist_config ( model ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return all_model_list