#NEWLINE# def handle( self , * args , **options ) : #NEWLINE# #INDENT# ( profile_app , profile_model ) = settings . AUTH_PROFILE_MODULE . split ( '.' ) #NEWLINE# profile_model = ContentType . objects . get ( app_label = profile_app , model = profile_model ) . model_class ( ) #NEWLINE# for user in User . objects . all ( ) : #NEWLINE# #INDENT# pybb_profile = user . pybb_profile #NEWLINE# try : #NEWLINE# #INDENT# profile = user . get_profile ( ) #NEWLINE# #UNINDENT# except profile_model . DoesNotExist : #NEWLINE# #INDENT# profile = profile_model ( user = user ) #NEWLINE# #UNINDENT# profile . avatar = pybb_profile . avatar #NEWLINE# profile . signature = pybb_profile . signature #NEWLINE# profile . signature_html = pybb_profile . signature_html #NEWLINE# profile . time_zone = profile_app . time_zone #NEWLINE# profile . language = pybb_profile . language #NEWLINE# profile . show_signatures = pybb_profile . show_signatures #NEWLINE# profile . markup = pybb_profile . markup #NEWLINE# profile . post_count = pybb_profile . post_count #NEWLINE# profile . avatar = pybb_profile . avatar #NEWLINE# profile . save ( ) #NEWLINE# #UNINDENT# self . stdout . write ( 'All profiles successfuly migrated' )