#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# ct = ContentType . objects . get ( app_label = 'data_exports' , model = 'export' ) #NEWLINE# self . empty_export = Export . objects . create ( name = 'test empty export' , slug = 'test-empty-export' , model = user ) #NEWLINE# self . im = InspectModel ( Export ) #NEWLINE# self . export = Export . objects . create ( name = 'test export' , slug = 'test-export' , model = ct ) #NEWLINE# for f in self . im . items : #NEWLINE# #INDENT# Column . objects . create ( export = self . export , column = f , order = 0 ) #NEWLINE# #UNINDENT# user = User . objects . create_user ( 'admin' , 'admin@admin.com' , 'admin' ) #NEWLINE# user . is_superuser = True #NEWLINE# user . save ( )