#NEWLINE# def ctypes_dict( ) : #NEWLINE# #INDENT# from django.contrib.contenttypes.models import ContentType #NEWLINE# values = ContentType . objects . values_list ( 'app_label' , 'model' , 'id' ) #NEWLINE# ctypes = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# [ ctypes . update ( { #NEWLINE# #INDENT# ( '%s.%s' % ctypes [ : 2 ] ) : x [ 2 ] , #NEWLINE# #UNINDENT# } ) for x in values ] #NEWLINE# return ctypes