#NEWLINE# def deserialize_module( self , module , **options ) : #NEWLINE# #INDENT# self . initialize ( ) #NEWLINE# empty_fixture = True #NEWLINE# objects = getattr ( module , 'objects' , None ) #NEWLINE# if ( objects is None ) : #NEWLINE# #INDENT# logger . info ( ( "Fixture %s has no attribute 'objects'" % module . __name__ ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# for obj in objects ( ) : #NEWLINE# #INDENT# for o in self . expand ( obj ) : #NEWLINE# #INDENT# empty_fixture = False #NEWLINE# ( yield o ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# if ( objects and ( not AFTER17 ) ) : #NEWLINE# #INDENT# if SUPPORT_EMPTY_FIXTURES : #NEWLINE# #INDENT# ( yield DummyDeserializedObject ( ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if settings . SITE . site_config : #NEWLINE# #INDENT# ( yield FakeDeserializedObject ( self , settings . SITE . site_config ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise Exception ( ( "Fixture %s decided to not create any object.\nWe're sorry, but Django doesn't like that.\nSee <https://code.djangoproject.com/ticket/18213>.\n" % module . __name__ ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# self . finalize ( )