#NEWLINE# def fake_save( self , instance ) : #NEWLINE# #INDENT# cls = instance . __class__ #NEWLINE# pre_save . send ( sender = cls , instance = instance ) #NEWLINE# for field in cls . _meta . fields : #NEWLINE# #INDENT# if isinstance ( field , FileField ) : #NEWLINE# #INDENT# getattr ( instance , field . name ) . _committed = True #NEWLINE# #UNINDENT# #UNINDENT# post_save . send ( sender = cls , instance = instance ) #NEWLINE# return self . storage . listdir ( 'avatars' ) [ 1 ]